Jump to content

Null object: Difference between revisions

m
Line 1,217:
=={{header|Nim}}==
There is a <code>nil</code> value in Nim, which is the same as a 0. It can be explicitly forbidden as a value:
<lang nim>varlet s: stringpointer = nil
 
{.experimental: "notnil".}
varlet ns: stringpointer not nil = nil # Compile time error</lang>
 
=={{header|Oberon-2}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.