fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Dot syntax for types?6
I remember I heard about a mode switch that requires "type groups” (what are these called btw?) to use a . and be prefixed. For example: type TGLType = (GL_FLOAT,…
- Change in TStrings.LoadFromFile/LoadFromStream encoding handling0
Just a heads-up. The LoadFromStream and LoadFromFile calls of TStrings have been changed. They now by default take into account encoding. This change was necessary for…
- Compiler hangs while generating debug information1
I encountered an odd problem, however reliably reproducible under both windows 7 and 10, 32bit, with FPC 3.0.2 and 3.0.4. (NOT with Lazarus 1.6.4 which uses FPC 3.0.2…
- issue when enabling -O211
I am getting an exception when I enable the -O2 optimization. More precisaily, the line that stars with write_portd.... is corrupting the data section. This is the…
- can inherited simply replace inherited method(param1, param2, param3)?2
are the 2 below equivalent? procedure Method(param1, param2 : integer); begin inherited; end; procedure Method(param1, param2 : integer); begin inherited Method(param1,…
- PAS2JS: operations with array of record9
Since it's missing the Pas2JS specific forum, I don't know if here is correct place to post things about "Pas2JS". I'm using it a lot and it's very promising. I…
- PAS2JS: JSON suggestion0
IMHO, the TJSJSON external class definition is incorrect. Currently, we have class function, if you want to use the stringify method, use this wierd…
- Generics vs templates18
I was talking with a c++ developer who explained how templates are implemented in c++ and how use some recursive method which causes them to totally murder compile…
- Comp type7
By accident I noticed the comp type for the first time. It's an Int64 but is considered to be a real type. Just out of curiosity, what is the use case of such a type, or…
- Register Allocation on x86_645
is it possible that the register allocation on x86_64 is a bit inefficient? No matter the optimization settings, I can never get FPC to use more than the rax and rdx…
- Problems with writing to console4
I have been mixing "writeln(StdOut" and regular writeln in my application (actually a couple of applications working together) and found that the output on the console…
- re-engineering tool6
Hi! Since I'm confronted with the task of analyzing a pile of object pascal sources I'd like to know: Is there any tool that can help me? Automatically generating a…
- Re: fpc-pascal Digest, Vol 163, Issue 120
Den 2018-01-08 kl. 08:49, skrev Sandro Cumerlato: Great! It works just fine! Very neat and tight fix too! And in time before Christmas is *really* over. At least we have…
- Re: First pas2js public release3
An update on my tests with pas2js: I have overcome most problems now and am quite a bit happier with what I see - and what I did see before was good! Reimar Grabowski…
- Re: fpc-pascal Digest, Vol 163, Issue 111
Thanks! The limitations in the sound playing are straight from JavaScript's Audio API. I think I know how to loop a sound, although the online advice are pretty…
- Error when trying to make tests for target AVR3
I'm trying to run the test suite for AVR by executing the following make statement: make FPC=~/fpc/3.1.1/compiler/ppcx64 TEST_FPC=~/fpc/3.1.1/compiler/ppcrossavr…
- String message methods and the self parameter2
When reading https://www.freepascal.org/docs-html/ref/refsu31.html#x82-1040006.5.7 I stumbled on the following text at the bottom of the page: "In addition to this…
- Final Methods support2
Does FPC have support for final methods? Please see -> http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Methods_(Delphi)#Final_Methods Marcos Douglas
- Translate C code7
Again I would like to ask some support on a piece C code that I need to translate to pascal. The code in question is: #define MEMNEXT(x) ((MyStruct *)(((char *) x) -…
- Modern Compiler Construction using Pascal8
I'd be interested to know if any modern compilers have been written in Pascal (other than the Pascal Compiler). It's unfortunate that that most Pascal books out there…
- CGI/FastCGI and WS request with a max time response4
I have a FastCGI application which needs to receive an user request but, in some cases, the app should consume a WebService(WS) before make the response to the user. The…
- Get user ID for name on Linux10
I would like to get the user ID for a Linux user name. Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I can't call the functions getpwnam or…
- any existing units/libraries for sorting?3
I have a list of records (each with a few fields). I want to let users display this list of records in ascending orders of any record field. Is there any existing…
- Possible Memory Leak in TThread.Synchronize3
I have been investigating a possible memory leak in a multi-threading Lazarus program compiled with 3.0.4 where the stack trace with heaptrc shows: Heap dump by heaptrc…
- FPC on zSeries Mainframes1
I remember back in 2012 (I think) there was a large discussion about implementing support for the zSeries IBM mainframes. The wiki had many pages on the topic too.…
- Increasing Image Resolution with Neural Networks0
To whom might be interested, I've just recorded a video showing how to increase image resolution using free pascal: https://www.youtube.com/watch?v=jdFixaZ2P4w I…
- Why win64 program are considerably bigger in exe size than win 32?9
I am upgrading my program from win 32 to win 64 using the new Lazarus 1.8. I discovered my program exe size increased from 6M to 9M. Why? Dennis
- Publishing indexed property in descendant2
is this bug? { TCompStreamPers } TCompStreamPers = class(TCustomControl) private function GetItem(AIndex: Integer): TPersItem; procedure…
- What happened to FileOpen in trunk?2
In multi-thread applications in Linux environment, I'm using FIFO's for communicating between threads. In order to make it work properly, the FIFO must be opened in non…
- First pas2js public release21
Hello fellow Pascal enthousiasts, It is with great pleasure that I can finally announce the first publicly available version of pas2js. A "beta" version, version 0.8.39.…
