1.1.19 $GOTO : Support Goto and Label

If f$GOTO ONg is specied, the compiler will support Goto statements and Label declarations. By default, $GOTO OFF is assumed. This directive corresponds to the -Sg command-line option.

As an example, the following code can be compiled:

{$GOTO ON}  
 
label Theend;  
 
begin  
  If ParamCount=0 then  
    GoTo TheEnd;  
  Writeln ('You specified command-line options');  
TheEnd:  
end.

Remark:When compiling assembler code using the inline assembler readers, any labels used in the assembler code must be declared, and the f$GOTO ONg directive should be used.