Results 1 to 2 of 2

Thread: raise at : undocumented (?) syntax

  1. #1

    Lightbulb raise at : undocumented (?) syntax

    While studying for extending my exception handling hack (exceptions fall through try blocks in threads in a DLL in Linux in fpc 3.0.4) I found these... Unexpected forms in fpc 3.2.0 sources:

    raise TObject(nil) at addr,frame;
    Raise E at Address,Frame;

    No mention of any "at" at

    It seems I was Doing It Wrong and my engine was crashing on x86_64 a lot because I didn't know you can raise exception at specific stack frame and do not have to do it... manually via horrifying phtagns?

    Checking RunErrorToExcept in the sources of fpc 2.6.4... Yup. Raise E at Address,Frame;. It was always there.

  2. #2
    I've found it is mentioned in The raise statement at the Free Pascal reference guide. Includes a nice example.
    No signature provided yet.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts