fpc-pascal
Subscribe to this list Your subscription
Latest threads
- record alignment2
I have a struct I need to port from C but the size I’m getting in Pascal is wrong. From C sizeof(AAPLVertex) = 32 but in Pascal sizeof(AAPLVertex) = 24. The alignment…
- Better usage of "with"15
I was just watching a video from Jonathan Blow (the developer of a really popular game named Braid) on a new language he’s working on to get around all the cruft and…
- round(2.5)=219
The round function behaves different than in TurboPascal, and its English Wiki page differs from the German page. When given an argument halfway between to integers,…
- Re: Regression in StrToDateTime()2
You also can make your own procedure to fix the issue for yourself. Like you can rewrite the function StrToDateTime() to change all '. ' to '.' and then call the…
- FP IDE browse-function (search symbol) errors1
I'm struggling with two issues with the Search,Symbol (Browse) function of the FreePascal IDE. Are these known issues, or is something wrong with how I installed or…
- Migrate Delphi XE5 to FPC/Lazarus, any advice?7
I have this big tomographic data interpretation and visualization program on my hands for maintenance. It was started back in 2002 by another developer using Delphi7 and…
- Dynamic arrays using management operators14
Since we were talking about dynamic arrays I was curious to see if they could be implemented using the new management operators so I made a little proof of concept by…
- Anchors on a child form5
If I create a child form by setting Parent:=other_form; in FormCreate, it cannot be dragged to a new position by the user. If I then remove the top and left anchors by…
- OSv v0.51.0 released with FreePascal support0
the announcement on the OSv list: https://groups.google.com/forum/#!topic/osv-dev/4KWShVlt08s An excellent wiki article has been written back in september 2016 about…
- HTTPRoute.pas and TRouteObject3
Working on a standalone web project using the new routing. I have a class descended from TRouteObject. My problem is that the constructor cannot be marked override so…
- := overload with implicit arrays in generics1
Is this is a bug or am I not doing something right? I wanted to assign an implicit array (I think thats what those parameters are being called now) so I made an overload…
- C# stackalloc5
As a sanity check for myself if you remember a while ago I posted about an idea for “stack aliases” to override the memory allocation for classes. No one really…
- Free e-book: Free Pascal from Square One3
See http://www.contrapositivediary.com/?p=4034 It's by Jeff Duntemann, and based on his 1993 book "Borland Pascal 7 from Square One". Jonas
- השב: Re: Free e-book: Free Pascal from Square One0
נשלח מסמארטפון ה-Samsung Galaxy שלי. <div>-------- הודעה מקורית --------</div><div>מאת: Joost van der Sluis …
- Sets & FPC12
I've got a piece of code which uses TOwnerDrawStateType and TBaseOwnerDrawState which is set of TOwnerDrawStateType , if i have on variable called state which is…
- Privacy statement published.0
As most of you are aware, the servers of FPC (and many of the collaborators of the core team) are located in the EU. The GDPR (General Data Protection Regulation) is in…
- -gw and -O31
What happens when you have both those switches on at the same time? Does the -gw affect the performance or just output information in addition to the optimized…
- Feature announcement: Unicode character constants outside of BMP1
Hello together! Small feature announcement this time, but some might like it nevertheless: FPC now supports unicode character constants that are outside of the Basic…
- Class Helper to implement an Interface2
Can I make a class helper to implements an Interface in an existing class? For example, TStringList class has Find: public function TStringList.Find(const S: string; out…
- Management operators question11
Talking about dynamic arrays I was just curious if we could us the new management operators to make dynamic arrays that are managed on the stack. Here’s a quick demo I…
- Libxml2 - How to get messages on Linux?5
I need to accomplish validate XML files with an XSD. Found libxml in packages and works as expected with Win32. But I have problem with messages on Linux 64bit. Got %s…
- -gw3 produces garbages0
The `-gw3` with `godwarfcpp` flag for lldb produces garbages for string type or any dynamic array types. While `-gw2` only works on string but still failed on any…
- Lazarus Release 1.8.40
The Lazarus team is glad to announce the release of Lazarus 1.8.4. This is a bugfix release. The release was built with FPC 3.0.4. Here is the list of changes for…
- Printing TFPImage to TCairoPSCanvas4
Hi, I need to print an TFPMemoryimage into Printer.Canvas (which uses TCairoPSCanvas to printing to CUPS) from a Linux CGI (no widgetset), but it seems that it's an…
- Dynamic Array, operator +1
Mixing dynamic and static array does not work properly yet. I compiled the following code with the latest trunk of FPC (revision 39062): procedure Ausgabe(a: array of…
- Re: fpc-pascal Digest, Vol 167, Issue 390
The dynamic array constructors sound absolutely wonderful! I have code with rather awkward workarounds that will benefit a lot by these features. /Ingemar
- TJSFloat32Array casting1
Did something change? I just tried this and it didn’t work. Casting “arr” to TJSObject didn’t work either. I could swear that used to work a few days ago. Maybe…
- LongBool True = -15
I am working with some a glib library that expects gboolean to be positive 1 for true, yet FPC emits -1 for true. Is there a compiler flag to force boolean types to emit…
- Anyone know where Blaise Thorne is?0
Has anyone had any contact with Blaise Thorne in the past couple of months? In mid-March he told me he would have an updated version of the closure branch ready in a…
- ExceptProc no longer gets Frames if DLL host uses a different memory manager0
I have a Win64 DLL compiled with FreePascal 2.6.0 in which I install a ExceptProc handler which signature is as follows: procedure MyExceptProc(Obj: TObject; Addr:…
