Extended syntax allows you to drop the result of a function. This means that you can use a function call as if it were a procedure. Standard this feature is on. You can switch it off using the {$X-} or {$EXTENDEDSYNTAX OFF}directive.
The following, for instance, will not compile:
function Func (var Arg : sometype) : longint;
begin
... { declaration of Func }
end;
...
{$X-}
Func (A);
|
The command-line compiler switch -Sa1 has the same effect as the {$X+} directive.
By default, extended syntax is assumed.