fpc-pascal · 2017-04
- fpc code for Java class and Android.28
Hello. Here a easy way to translate all your fpc applications into Java applications (class). The trick is to convert your fpc applications into native java libraries.…
- Threading vs Parallelism ?42
Hello. Some developers treat me as dinosaur because I use threads in place of doing parallelism. Huh, ok, but why parallelism is better and how to do it with fpc ?…
- Record operator for assignment17
Instead of making constructors and doing busy work It would be nice if Free Pascal could let you assign records outside of type blocks like: rec := (x: 0; y: 0; z: 0);…
- Freevision etc.9
I've not used Freevision/Turbovision before, but am experimenting with James Clarke's DialEdit as an experiment to see whether I can create a fallback user interface for…
- Is there some disadvantages using mode Delphi?10
I would like to write some packages that should work in FPC and Delphi. I know that I will need to use {mode delphi} to do that. My ask is: Is there some disadvantages…
- Cross compile linux->solaris?1
Thought it would be fun to test a little cgi web programming. The server tha hosts my website returns this (on unam -a): SunOS aklathep 5.10 Generic_150401-49 i86pc i386…
- Correct syntax for initialized constants/variables4
I try to include some initialized constants/variables in an application of mine, but somehow stumbled upon a stupid little problem that I can't figure out myself after…
- WebAssembly Target60
Is there something planned in this matter for FPC? I was reading about the new Firefox making WebAssembly publicly available ("On Tuesday Firefox 52 became the first…
- Can class function used in specialized class use intristic functions Low, High with generic type ?4
I have some generic class: generic T2DNumericArray<T> = object(specialize T2DArray<T>) public class function Truncate(Value: double): T; inline; ... In class function…
- 32-bit random numbers2
Am I correct in interpreting the documentation as implying that if I want to get a full-range 32-bit unsigned random number I have to use something like…
- Use a procedural type for declare a procedure\function2
Why can't use procedural type for declare a procedure\function? Why ever allow the exact same signature? It's uncomfortable Maybe it makes sense to introduce into the…
- Coroutines and VirtualAlloc28
I was curious about possible ways coroutines could work in FPC and found this example that claims to implement just that. It appears to be designed for Windows though…
- AArch64 / Linux2
me again trying new platforms :=) I now have two machines running Linux on 64-bit ARM. So I wonder, what's the best way to get FPC 3.0.2 running natively on AArch64 and…
- GUI multithreaded Win32 program sometimes freeze when quitting2
I have an win32 multithreaded program written in lazarus 1.7, FPC 3.1.1 From time to time, when it quits, it will freezes and from the task manager, the program will…
- Get value of PPChar ?15
Hello. A C method is defined like this: MPG123_EXPORT int mpg123_icy(mpg123_handle *mh, char **icy_meta); and translated in Pascal with this: function mpg123_icy(mh:…
- Array clearing64
As far as the compiler is concerned what’s the difference between clearing an array using a for-loop vs. FillChar? It seems like iterating the array would be slower…
- Hash List9
Ia there any hash list implementation in free Pascal? Ghashmap has no documentation. Is it stable for production use? Regards
- SpVoice.GetVoices returned exception class EOleSysError8
The project has generated an exception class EOleSysError with a message: ???? ?????? ?? ??????. uses ...,ComObj; var SpVoice: Variant; SpVoice :=…
- Constants in generics6
I wanted to make a record generic that would serve as wrapper for an array allocated on the stack. Is there anyway to make constants work in generics? The generic type…
- sqldb create/free lifetime of object7
The sql query object and transaction object are created but not freed: http://www.freepascal.org/docs-html/fcl/sqldb/usingsqldb.html I think the docs should mention that…
- TSQLQuery and buffering.21
Firstly, I realise this is an old subject, but I still can't find any easy answer. Really, the question is simple: Is there ANY way of TSQLQuery NOT reading the entire…
- Call function in shared library from multiple threads15
I'm wondering if shared libraries (on Linux) support call exported function from multiple threads. I made small demo. Threads send JSON PChar into shared lib function…
- Good FFT example anywhere?17
I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... So maybe…
- Platform Dependent Integer Types12
Which integer types have their size dependent on platform? E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. The documentation says "every platform…
- Out of scope method?21
Does it exist now or has it ever been discussed that a method in TObject could be called when an instance of an object goes out of scope? It’s common to clean up…
- Re: Bug in documentation for Random?7
I've never used negative values, so this is just a guess: random(+10) will output numbres 0..9 random(-10) will output numbres -9..0 so, it is equivalent to -random(10)…
- mirror freepascal.stack.nl down0
One of the FPC mirrors "freepascal.stack.nl" is currently being migrated to a new vm. I hope access will be restored within hours.
- Setting record values5
I’ve been using a design pattern in my code which I think is probably pretty stupid so I’d like to make sure. Assume I have a type like TPoint below and I want to…
- SPARC / Linux20
I noticed there is no binary FPC 3.0.2 Linux release for SPARC. Should it be possible to compile it for SPARC, possibly using the older binary 2.6.2 release? If yes, I…
- parameter list declaration2
I'm looking for official reference for function/procedure parameter list declaration in Pascal. I found this: http://www.freepascal.org/docs-html/ref/refse91.html but…
