fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Hint converting to int644
Hello: FPC: 3.0.4 (Realease from Lazarus 1.8.4 SVN: 57972) OS: Windows7 32bits / Linux 64Bits I have this code and I get a hint ---------- var…
- Unbuffering I/O13
I think I've seen this question asked before, my apologies if this was recently. I've got two programs intended to be functionally identical, one in Perl and the other…
- Branch table12
Why the code below does exit gracefully without prints anything? Sure, it is for my poor knowledge of the assembler, but in some details, please... program branch;…
- Type helper for JNI pointers2
when you use JNI functions you always need to repeat "env" a lot: var javaClass: jclass; javaObj: jobject; begin //javaClass := ... javaObj :=…
- No breakpoint capability1
I updated to FPC 3.0.4 and can't get breakpoints to work. I get a "can't set breakpoint message" on all lines. I am in debug mode and have "generate debug information"…
- How is interface variable implemented?1
if I have this test program below: program testi; {$INTERFACES CORBA} uses sysutils; type IInterfaceA = interface procedure Increment ; end; { TObjectA…
- Reading AM2302 temp/humid sensor on RaspberryPi?13
I wonder if there are any demo projects around for reading the AM2302 DHT sensor on a RaspberryPi through FreePascal? Any links to sample code would be appreciated. I…
- Link with GCC object files2
Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM) with GCC or other C++ object files? Andreas Berger
- Very slow startup of Frepascal programs on just one system4
I am experiencing very slow startup of all of my freepascal programs for windows on just one computer. Normally they all start pretty much instantly, but I just got a…
- FPC for linking only1
Is it possible to use FPC for linking only? (assuming that .ppu/.o files were created by fpc previously) using options -sh Generate script to link on host or -st …
- Docs: portability differences between Borland/FPC13
There is the old "Porting TP" document at <https://www.freepascal.org/port.var>, but it is rather incomplete (and probably on an older language level). It also covers…
- Auto vars (again)7
I had some free time recently so I decided as a learning experience to fork the compiler and implement the “auto var” idea that was mentioned a few weeks ago. What I…
- why can't we define class operator for old fashion object type, but ok for 'advanced record' type?18
I was trying to use a generic class TDictionary<T> with type T. This class has a method that compares a variable of T with another one. When I specialize a class using…
- tply: start conditions2
this is more of a generic lex question, but since plex doesn't support the flex extension that could easily fix it, I'm asking here. Take these lex rules:…
- Rebuilding RTL5
If I cd to the rtl directory in the fpc sources and run make they are compiled into the /rtl/units/x86_64-darwin directory. 1) How do I compile the ppc386 units? the…
- Operator overload bug18
I mentioned this as an aside a while ago but I don’t remember getting a response so I’d like to formally reintroduce the issue. Should I file a bug report for this…
- access violation?17
I was doing some testing today (Mac) and discovered that calling Free on a nil object didn’t cause a EAccessViolation exception. Why doesn’t that crash? var c:…
- Assigning open array1
Hello: I'm not very sure how open arrays are copied program Project1; Type TMyRecord=record somedata:string; ArrayInt:array of integer; end; TRecordList=array of…
- Pascal Neopixels5
I'm not sure what would be the correct list for this question since it involves writing Pascal code and not Lazarus, so here goes ... Can anyone offer me any advice or…
- Syntax changes suggestions112
I have some suggestions of change to freepascal syntax, just to debate (All are backward compatible) - Declaring variables inside blocks, and loop variables - Autofree…
- Generics - extending TFPGObjectList3
I needed to extend TFPGObjectList and I found two wierd things (FPC 3.1.1 r39507): program project1; {$mode objfpc}{$H+} uses Classes, FGL; type …
- How __FPC_specific_handler() is invoked4
I am writing my own __FPC_specific_handler() but I can't figure out when this function is registered. I guess this function is registered to the OS to be invoked when an…
- No type info available for this type (Enumerated type with constant assignment)6
I am trying out the examples at http://wiki.freepascal.org/Enumerated_types but The following simple program will raise compiler error "No type info available for this…
- Pascal units to connect to an Exchange server5
to send e-mails programmatically using a Microsoft Exchange account. Using Windows resources, I could call Outlook automation API to do this task. But is the same…
- GetAppConfigDir(False) in a Citrix environment5
One of my apps also runs in a Citrix environment. It does not retrieve it's settings. If appears that GetAppConfigDir(False) returns "C:\Users\<username>\AppData\Local".…
- How to translate Delphi Assembly MOV EAX,[EBP+4]4
The following delphi code when compiled by FPC, raised these errors: Compile Project, Target: lib\x86_64-win64\Project1.exe: Exit code 1, Errors: 10, Warnings: 2…
- A new fpc desirable feature10
As everybody is suggesting new fpc features, I feel it right to add my own proposal, to make the language more useful and user friendly. I propose the support for the…
- Loss of precision when using math.Max()41
I stumbled upon something the other day that was causing numerical differences between compiled Delphi and FPC code. Executing the following sample console application…
- Coercing record fields together5
Could I do some RTL magic on a record to loop over its fields and set them to another record by name? In the example below I want to set all the fields in TRecA to…
- How to use Google Protocol Buffer0
To connect to a server, I need to use Google's Protocol Buffer format. The only workable parser to convert the protocol definition file to pascal reader/writer source…
