Undefined values: Difference between revisions

m
m (→‎[[Undefined values#ALGOL 68]]: rename some variables)
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 R = REF REALBOOL;
R r := NIL;
 
MODE U = UNION(COMPLBOOL, VOID);
U u := EMPTY;
 
Line 24:
(VOID):print(("u is EMPTY", new line))
OUT print(("u isnt EMPTY", new line))
ESAC</lang>
</lang>
Output:
<pre>