fpc-pascal · 2012-08
- Inline bytes11
How is it possible to put some inline bytes in the code like the former inline( $1f , $ef , $1A ); instruction?
- Get all caller adresses of a procedure/function31
procedure p1; begin ... end; How to get all caller adresses of p1 in a program before p1 is executed? For example p1 is called from 20 different places in a program.…
- /docs-html/rtl/system/get_caller_addr.html0
There is a typo in this documentation. The Description field refers to get_caller_frame when get_caller_addr is surely meant. Howard
- Compiling on Raspberry Pi3
I recently recieved my Raspberry PI. That's an arm-linux device. I downloaded the easyfpgui-package from http://www.turbocontrol.com/easyfpgui.htm. I can't compile the…
- How to find a graphic element in the form editor?4
When I want to add a graphic element like TFileNameEdit which I have already used in other programs in the form editor I don't know how to find it in the menu. I am…
- class of a class function4
How can I get the actual class a class function is called in? TSomething = class class function GetMyClass: TClass; end; TOtherthing = class(TSomething) end; ... class…
- virtual class var?5
Hi, is it possible to have a virtual class variable? I want to have a pointer available per class that can be a different value. Something like this: TA = class class…
- printing each Friday the 13 using Pascal4
A friend of mine started a hobby project: Printing every Friday the 13, in a range of 5…
- Problem compiling3
I get: text.inc(199,34) Error: Illegal type conversion: "Text" to "TextRec" after updating the compiler sources from SVN. Free Pascal Compiler version 2.7.1 [2012/05/22]…
- Translating from error numbers to symbolic name4
When using a function like fpAccept on a non-blocking socket, in some cases -1 is returned with a documented (Linux kernel) error code of EAGAIN. Should I be looking for…
- Initialization of class field7
I'm reading about variable initialization (http://www.freepascal.org/docs-html/ref/refse22.html) . Can I initialize class field too? Like in Java: type TMyClass = class…
- strlen and nil3
What does strlen return on nil? The FPC function strlen is implemented via FPC_PCHAR_LENGTH. The documentation does not say what happens when passing nil. Mattias
