Null object: Difference between revisions

Content added Content deleted
m (add link to Delphi for pascal)
Line 601: Line 601:


=={{header|Python}}==
=={{header|Python}}==
<lang python>x = None
<lang python>try:
if x is None:
x
except NameError:
print "x is None"
print "x is undefined"
else:
else:
print "x is not None"</lang>
print "x is defined"
</lang>
Output:<pre>
x is None
</pre>


=={{header|R}}==
=={{header|R}}==