[fpc-pascal] Compiler option to check return value ignorance

Vinzent Höfler JeLlyFish.software at gmx.net
Wed Aug 13 13:08:36 CEST 2008

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?


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.


More information about the fpc-pascal mailing list