2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
14
Task/Null-object/Oberon-2/null-object.oberon-2
Normal file
14
Task/Null-object/Oberon-2/null-object.oberon-2
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
MODULE Null;
|
||||
IMPORT
|
||||
Out;
|
||||
TYPE
|
||||
Object = POINTER TO ObjectDesc;
|
||||
ObjectDesc = RECORD
|
||||
END;
|
||||
|
||||
VAR
|
||||
o: Object; (* default initialization to NIL *)
|
||||
|
||||
BEGIN
|
||||
IF o = NIL THEN Out.String("o is NIL"); Out.Ln END
|
||||
END Null.
|
||||
Loading…
Add table
Add a link
Reference in a new issue