Null object: Difference between revisions
→{{header|Chapel}}: show nil test
(→{{header|C sharp|C#}}: add chapel version) |
(→{{header|Chapel}}: show nil test) |
||
Line 187:
Objects variables without an initializer expression will be initiallized to nil:
<lang chapel>class C { };
var c:C; // is nil
writeln(if c == nil then "nil" else "something");</lang>
=={{header|Clojure}}==
|