Commit Graph

3 Commits

Author SHA1 Message Date
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
Kelvin Sherlock
cf72a073f8 cr / lf conversion. 2018-03-12 14:15:39 -04:00
mikew50
dbb32024b6 ORCA/Pascal 2.2 source from the Opus ][ CD 2018-03-11 20:21:14 -06:00