fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Workaround for fpcres requiring absolute path2
I use windres on Windows and Linux 32 and 64 bit (via mingw), but that doesn't work on ARM Linux - so I thought I would try using fpcres on Lazarus 2.3.0 and FPC 3.31…
- Pascal and C++ classes0
Is IT possible for pascal to use C++ class objects in a dynamic library?<br/><br/><br/><br/><html> <head> <meta http-equiv="Content-Type" content="text/html;…
- Cross-compiler for ARM64 on Windows available?19
I have developed a DLL for x64 Windows and compiled with fpc 3.2.2. I would like to compile the same code for ARM64 running Windows. I need this to support the MS…
- Operator not overloaded3
I have tried to create an example as minimalistic as possible. I have three files: *** file: pathfinding.pas *** unit PathFinding; {$mode objfpc} interface type generic…
- Mail Test1
This is just a test of the mailing list. @Ryan: if you can see this, would you please reply with only the list, but not myself as receiver? Sven
- Are there any drawbacks to "reference to"?23
As the "reference to" feature was recently added to fpc trunk, I'd like to ask if internally there are any penalties (performance perhaps) or drawbacks to using them in…
- Calling undefined function pointers in generics4
This code snippet will give a compiler error "Syntax error, ";" expected but "(“ found”. It’s an unspecialized generic type so I would think it should compile and…
- FPConnect Timeout3
Is there any way to specify a shorter timeout for FPConnect?
- no array support in sqldb/sqldbrestbridge?2
since I'm going to need arrays in a postgresql database to expose via a rest api, I did a simple test with sqldbrestbridge. I created a simple table: create table prueba…
- Function References Not Working As Expected0
Regarding a message with an example project I write earlier, I discovered a bug with function references. See this entry…
- Compiler flag define or $IFOPT for optimizations3
I want to show how my program was compiled. Now I have string like "FPC3.2.2 i386-Linux R+C+" from compiler := 'FPC' + {$INCLUDE %FPCVERSION%} + ' ' + {$INCLUDE…
- Be careful of too many features12
In 1984 I started my programming career with Whitesmith Pascal, and soon after Turbo Pascal 3, then C. C had the advantage of pointers to functions, Pascal had the…
- Feature Announcement: Function References and Anonymous Functions21
The Free Pascal Developer team is pleased to finally announce the addition of a long awaited feature, though to be precise it's two different, but very much related…
- Code tools and function references0
Is this issue addressing the fact that the Lazarus code tools is not working with the new syntax? https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39774. If…
- "Is nested" vs "of object" compatibility with global functions4
I’ve been testing out all the different function pointer types in FPC to test their compatibility with each other and I noticed that “is nested” can accept a…
- Strange "division by zero" error using variants2
please consider the following code: program Project1; {$booleval off} var v1, v2: variant; a: boolean; b: integer; begin a := true; b := 0; // this works as expected: if…
- Different levels of the same compiler message0
Why am I getting a different level (hint/warning) of the same compiler message in similar code, only differing in return type? The following example: program Project1;…
- Lazarus Release 2.2.20
The Lazarus team is glad to announce the release of Lazarus 2.2.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and…
- Element type of set at compile time5
Is there a compiler intrinsic to get the element type of a set at compile time? So if you have “set of T” it should return T. Ryan Joseph
- alloca15
Is there an “alloca" like function in the RTL which allocates memory from the stack? For example https://man7.org/linux/man-pages/man3/alloca.3.html Ryan Joseph
- bug or feature?27
This can't be right, can it? type TBird = class procedure Fly; end; TEagle = TBird; // alias procedure TEagle.Fly; begin end; Mattias
- Feature announcement: implicit generic function specializations47
The FPC developers are pleased to announce the implementation of a new feature: implicit generic function specializations. This feature was implemented by Ryan Joseph,…
- Correct way for using TThread.ForceQueue?7
my question is about using the TThread.Synchronize, Queue and ForceQueue methods. Unfortunately, the parameter they take is of type TThreadMethods which allows calling…
- What's wrong with Leave?1
The test program: begin {$IF Declared(Leave)} Leave; {$ENDIF} end. The compilation error: D:\data\temp>fpc -Mfpc leave_example.pas Free Pascal Compiler version 3.2.1…
- Compiler internals. Changing dynamic arrays format3
Hi all I've been maintaining a set of private patches for some quite old FPC revision for some years. The idea behind those patches to ease interoperation between FPC…
- RTLEventWaitFor6
Under Linux a RTLEventWaitFor(e,1) usually waits at most 1ms. But under Windows it usually waits at least 15ms. It seems to round to nearest 1/64 of a second. Googling…
- converting to UTF84
Lazarus 2.012 FPC: 3.2.0 SVN: 64642 OS: Windows 10 Pro/win64 I'm reading from a file with character set win1252, I want to convert it to utf8, but I can't. procedure…
- Just out of curiosity: Compiling FPC trunk and fpcmake12
For years I have been using the same script to compile FPC, I have multiple version of FPC installed in the same machine, mainly my script do: make -j 9 clean all make…
- PTCGraph window location2
Is there some way I can set the location of the pctgraph window before it is created so it just pops up where I want it to be? I'm using Windows 10. I've been…
- help with porting project1
Hi I need help with porting an open source project from delphi 7 to latest version of lazarus (target is win64). Please read all details here…
