New (Screen constructor)

From m204wiki
Revision as of 19:04, 31 January 2011 by Tom (talk | contribs) (→‎New constructor)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This shared function instantiates a Screen object.

  %screen = New
New syntax
%screen
A declared Screen object variable.
Usage Notes

New is a constructor and as such it can be called with no object, with an explicit class name, or with an object variable, even if that object is null:

%scr = new
%scr = %(screen):new
%scr = %scr:new