leledumbo wrote:
Vinzent Höfler wrote:
Yes. Turn Extended Syntax off {$X-}, then a function result must be
assigned to a variable. At least it used to be that way.
...
so "inherited Create" did not compile anymore (and I remember that any
attempt to assign this "result" to a dummy variable even failed). So, at
that time I turned the extended syntax stuff back on.
So, if I don't use any classes, turning Extended Syntax Off would be OK?
I guess so. Haven't tried it in years, though.
What's activated by this Extended Syntax anyway? Any document/article about
it?
http://www.freepascal.org/docs-html/prog/progsu108.html#x116-1160001.2.32
With Turbo/Borland Pascal there were some other subtle differences (like
- I think - treating an array of char as string/PChar), but the main
effect was the throwing away of function results.
Vinzent.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal