Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Null-object/Oberon/null-object.oberon
Normal file
14
Task/Null-object/Oberon/null-object.oberon
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