Anonymous user
Null object: Difference between revisions
no edit summary
m (→{{header|Go}}) |
No edit summary |
||
Line 211:
The classes <code>t</code> and <code>null</code> are widely exploited in Lisp OO programming.
=={{header|ComponentPascal}}==
<lang ComponentPascal>
MODULE ObjectNil;
IMPORT StdLog;
TYPE
Object = POINTER TO ObjectDesc;
ObjectDesc = RECORD
END;
VAR
x: Object;
BEGIN
IF x = NIL THEN
StdLog.String("x is NIL");StdLog.Ln
END
END ObjectNil.
</lang>
=={{header|D}}==
|