2018-01-30 8:34 GMT+01:00 Michael Van Canneyt <mich...@freepascal.org>:
> The question is whether Delphi's behaviour is intentional. Sadly it is intentional (but undocumented), the facts: * Barry Kelly compiler guy post * Works with all known Delphi versions * I've checked this for NG compiler - also works like in classic Delphi (especially this point means that the "feature" is intentional ) Seems like the SCOPEDINTERFACEDESTROY mode-switch is necessary. The question is: would we like to enabling this for all Delphi modes? the approach with "with" for "scoping" seems more proper even in Delphi mode. Probably SCOPEDINTERFACEDESTROY should stay off for all modes including Delphi modes. -- Best regards, Maciej Izak
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal