Anonymous user
Null object: Difference between revisions
→{{header|Delphi}}: Adds Déjà Vu example
(→{{header|Lasso}}: adding null type comparison tests) |
(→{{header|Delphi}}: Adds Déjà Vu example) |
||
Line 304:
if not Assigned(lObject) then
...</lang>
=={{header|Déjà Vu}}==
There isn't an actual null object, so generally falsy objects are used to indicate a missing value, or when that's impractical a specific ident:
<lang dejavu>if not obj:
pass #obj is seen as null
if = :nil obj:
pass #obj is seen as null</lang>
=={{header|DWScript}}==
|