Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2012-08

  1. Inline bytes

    How is it possible to put some inline bytes in the code like the former inline( $1f , $ef , $1A ); instruction?

    Rainer Stratmann, Henry Vermaak, Jonas Maebe
    11
  2. Get all caller adresses of a procedure/function

    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.…

    Rainer Stratmann, Aleksa Todorovic, Howard Page-Clark
    31
  3. /docs-html/rtl/system/get_caller_addr.html

    There is a typo in this documentation. The Description field refers to get_caller_frame when get_caller_addr is surely meant. Howard

    Howard Page-Clark
    0
  4. Compiling on Raspberry Pi

    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…

    Koenraad Lelong, Graeme Geldenhuys, Mattias Gaertner
    3
  5. How to find a graphic element in the form editor?

    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…

    Jürgen Hestermann, Graeme Geldenhuys, Howard Page-Clark
    4
  6. class of a class function

    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…

    CA Gorski, Jonas Maebe
    4
  7. virtual class var?

    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…

    Andrew Haines, Paul Ishenin
    5
  8. printing each Friday the 13 using Pascal

    A friend of mine started a hobby project: Printing every Friday the 13, in a range of 5…

    ik, Gerhard Scholz, Howard Page-Clark
    4
  9. Problem compiling

    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]…

    Unknown author, Jonas Maebe, Marco van de Voort
    3
  10. Translating from error numbers to symbolic name

    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…

    Mark Morgan Lloyd, Marco van de Voort, waldo kitty
    4
  11. Initialization of class field

    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…

    Krzysztof, Bart, leledumbo
    7
  12. strlen and nil

    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

    Mattias Gaertner, Marco van de Voort, Unknown author
    3