fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Lazarus Bugfix Release 3.20
The Lazarus team is glad to announce the release of Lazarus 3.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free…
- [fcl-web] [jsonrpc] [fpjsonrpc.pp] DoCheckParamArray in TCustomJSONRPCHandler1
the TCustomJSONRPCHandler.DoCheckParamArray in fpjsonrpc.pp causes an exception with the message "List index (0) out of bounds". This happens, for example, if ParamArray…
- Floating point question28
Compile-time math needs to be as correct as possible. RUN-time math can worry about performance. The whole point of computer programming is to let the machine do the…
- Can FPC link a program with static (.a) libraries on Windows2
I have a Pascal program, compiled with FPC 3.2.2 and which appears to happily link and run with a static library compiled with gcc and having a ".a" prefix on linux. The…
- Re: Floating point question1
I believe this question is a red herring. In case "constant propagation" is an optimization aimed primarily at run-time program code (this is mainly why compilers exist)…
- FPReport: Split text across two or more pages8
I have already asked this and related questions in the Lazarus Forum. I want to improve FPReport in order to use it for my project - if possible. Some features are…
- Floating point question68
I'm facing some strange floating-point issues and cannot find what's actually wrong. OS is win64, but I'm even getting different results when targeting to win32. Please…
- "Unexpected end of file" when having an open comment after the final "end."7
I'm unsure about whether or not to report this as a bug. Imho, it is a bug, but maybe there's a good reason to handle this. Please take the following example: ---start---
- Re: Floating point question (Rafael Picanço)4
I have some questions about {$MINFPCONSTPREC 64} and the mentioned change introduced by FPC 2.2 (the "it" from here after). 1) Does it affects constants only? 2) Does it…
- How to contribute a Unit0
In www.freepascal.org, I see there is a "Contributed Units" tab. What are the criteria for a unit to be qualified to be placed there. How can one build a community…
- Re: Crash with cthreads and snapshot ppca64 on macos 14.2.10
-Mmacpas adds macpas.pas, which uses math.pas and throught that sysutils.pas. But, looking at the RTL source code, I don't see anything that explains why the problem…
- Crash with cthreads and snapshot ppca64 on macos 14.2.10
I get a "Threading has been used before cthreads was initialized." crash for a simple program program test; uses cthreads; begin writeln( 'Hello') end. on macos 14.2.1…
- Read Field names from VMT14
I want to retrieve the name of the fields in a record/class, at run time. It looks like "TVmt.vFieldTable" is what I need. But I cannot find any documentation about…
- Division by zero when running SDL program on GPU (NVIDIA)2
Hi everyone, how are you doing? I am receiving an "FLT divide by zero" error when creating a renderer with // will default to Direct3d renderer…
- Need some advice4
Trying to use the fgl unit, specifically the TFPGMap. Below is a simple program I'm trying to compile; it gives me two errors: fgl.pp(1582,18) Error: Operator is not…
- Nested comments.4
I'm wondering if it is possible to make FPC detect and warn (or even stop compillation when) it has detect a nested comment. That's because I'm using Vim and it closes…
- IntToStr implementation9
Can anyone show me where to find the IntToStr implementation in SysUtils? There's so many level of indirection and macros I have no idea where to look for it! Ryan Joseph
- Trash variables (-gt) - Translation3
I am translating "Trash variables" (from English to Slovak), but I can not find appropriate words. That's why I want to describe it in more words. Is this correct:…
- Extra linkxxx.res files left over when compiling/building project1
I have been working on troubleshooting a command line FreePascal project for a couple of weeks now and when I look in the project dir it is full of link files:…
- "Address of" question1
I just noticed it's possible to do @Byte in FPC. Are these 2 lines even different? It doesn't exactly make sense to take the address of a type identifier so I'm curious…
- $definec and $define0
The FreePascal Programmer's Guide version 3.2.0 reads in section 1.2.11 "Under Mac Pascal mode, the $DEFINEC directive is equivalent to the $DEFINE directive and is…
- What's in Hello World29
I compiled the Hello World program from the docs and noticed that it's 435k. Compared to a lot of newer languages, like Golang, that's not bad at all. I then compiled…
- %LINENUM%0
Section 1.2.41 of the Free Pascal Programmer’s Guide version 3.2.0 says: "As a result, this will generate a macro with the value of the XXX specifier, as if it were a…
- RIP: Software design pioneer and Pascal creator Niklaus Wirth3
"Swiss computer scientist Professor Niklaus Wirth died on New Year's Day, roughly six weeks before what would have been his 90th birthday."…
- Virtual methods on sealed classes1
Do sealed classes actually call virtual methods statically or are they just for compiler warnings? Ryan Joseph
- Quiz2
Quiz. Which of below constant declarations are accepted by the compiler and what is their value ? const ki1 = + 2; ki2 …
- Does the varargs specifier behave differently on 32 and 64 bit platforms?1
I'm using a declaration like this TYPE TRSMControl = FUNCTION (AData: PtrInt): PtrInt; CDECL; VARARGS; VAR RSMControl: TRSMControl; to make calls to a DLL function which…
- Profiling in windows0
I have a freepascal project for Windows that works really well, but as soon as I start it, I have high CPU usage, and it stays high, it constantly uses 10% CPU while my…
- How to avoid Copy17
I have a List of record, where the record has a WideString field. I have some code like the following: function check(constref v: TMyRecord; data: TListOfMyRecord):…
- Daily snapshots?4
as it seems to take longer for the next major release, I'd appreciate if automated snapshots could be provided either daily or weekly. In the documentation, I found a…
