fpc-pascal · 2024-01
- 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…
- 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):…
