Kelvin Sherlock
|
7d6b083546
|
This patch allows forward object declarations, in the same manner as delphi. To pre-declare an object, use a semicolon after the object keyword.
Example:
Type
forwardObject = Object; {forward declaration}
myObject = Object
count: integer;
procedure init;
function createForwardObject: forwardObject;
end;
fowardObject = Object (myObject)
procedure init; override;
end;
---
outstanding issues:
new(forward_declared_object); -> error 44, "error in type of standard procedure parameter"
OtherObject = Object (ForwardDeclaredObject) end; -> errror 129, "type of variable must be object"
debugger symbol tables
|
2018-03-25 21:57:41 -04:00 |
|