[fpc-devel] Interface scope incompatibility with Delphi

Alexander Klenin klenin at gmail.com
Wed Nov 10 19:13:09 CET 2010

As a piece of anecdotal evidence, the fact that FPC
does not "properly" support interfaces was the reason
for at least one company I worked for to reject it and move to Delphi
2007 instead
(from Delphi 7).

I can understand the reluctance to implement under-specified behavior,
but I think FPC would benefit from *some* way to specify
auto-disposed objects, even if not Delphi-compatible.

Maybe some "magic" type or a special keyword?
Maybe steal "using" statement from C#?
Or, equivalently, specify interface lifetime when used in "with"

Alexander S. Klenin

More information about the fpc-devel mailing list