Null object: Difference between revisions
Content added Content deleted
m (→{{header|Go}}) |
No edit summary |
||
Line 211: | Line 211: | ||
The classes <code>t</code> and <code>null</code> are widely exploited in Lisp OO programming. |
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}}== |
=={{header|D}}== |