Anonymous user
Undefined values: Difference between revisions
m
→[[Undefined values#ALGOL 68]]: rename some variables
(→{{header|Python}}: Modified comments to stress creation/deletion. There is no 'undefined' value to give.) |
m (→[[Undefined values#ALGOL 68]]: rename some variables) |
||
Line 9:
Note: Some implementations (eg [[ALGOL 68C]]) also have a procedure named ''undefined'' that is called to indicated that the behaviour at a particular point in a program is unexpected, undefined, or non-standard.
<lang algol68>MODE
MODE U = UNION(COMPL, VOID);
U u := EMPTY;
IF
print(("
ELSE
print(("
FI;
Line 24:
(VOID):print(("u is EMPTY", new line))
OUT print(("u isnt EMPTY", new line))
ESAC
</lang>
Output:
<pre>
u is EMPTY
</pre>
|