2018-01-29 23:32 GMT+01:00 Zoë Peterson <z...@scootersoftware.com>: > Is Free Pascal's behavior intentional? Can it be changed to match Delphi? >
the topic is well known. I have plan to add new modeswitch for that: SCOPEDINTERFACEDESTROY If you like you can try existing patch: https://bugs.freepascal.org/view.php?id=30409 anyway somehow Delphi (undocumented) way seems bad. SCOPEDINTERFACEDESTROY would be big help for legacy code ported from Delphi... FPC has more elegant alternative way for the same thing, you can simple use *with*: procedure Foo; begin WriteLn('Foo >'); with Bar do begin WriteLn('Foo <'); end; end; -- Best regards, Maciej Izak
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal