The syntax of uses clause and extended syntax function declarations and global variables cannot initialized
Original Reporter info from Mantis: Gerard
-
Reporter name: Gerard Szymborski
Description:
I convert Delphi Project to Lazarus Project (Delphi 2.0)
the reserved word in and the name of a source file not works
uses
Forms,
var10 in 'var10.pas', {error}
unitat in 'unitat.pas'
Delphi extended syntax: Result is implicitly declared in every function
function x:byte;
begin x:=1 end; ok
funtion x:byte;
begin result:=1 end; error
var xy:word=0; works in Delphi
Lazarus message: Fatal:Syntax error ";" expected but "=" found
Mantis conversion info:
-
Mantis ID: 1498
-
OS: win32
-
OS Build: all
-
Platform: 386
-
Version: 0.9.8