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