FreeAndNil - "Undeclared identifier"

Issue #37 resolved
Daniel Roziecki created an issue

freeandnil.png

FPC 3.0.2 (Linux x86_64)

Regards

Daniel Roziecki

Comments (8)

  1. George Bakhtadze repo owner

    Is Delphi SDK used? What version of Delphi? Did you setup .dcu a decompiler or just added SysUtils.pas to project paths?

  2. Daniel Roziecki reporter

    No, this is not Delphi SDK, this is FPC 3.0.2 SDK. Example was from FreePascal wiki.

    fpcsdk.png

  3. Alexey Prokhorov

    @argb32 yes. If open decompiled sysutils.dcu definition, here is the code:

    procedure FreeAndNil(  var obj: system.);
    
  4. George Bakhtadze repo owner

    This shouldn't prevent finding FreeAndNil's declaration. Does it highlight the procedure as undeclared identifier in your code?

  5. Log in to comment