Pointers and references: Difference between revisions

Content added Content deleted
(Pari/GP -- doesn't really have them)
Line 492: Line 492:
===TYPECASE===
===TYPECASE===
To determine the type of a variable, you can use <tt>TYPECASE</tt>.
To determine the type of a variable, you can use <tt>TYPECASE</tt>.
<lang modula3>PROCEDURE Sum(a: ARRAY OF REFANY): REAL =
<lang modula3>PROCEDURE Sum(READONLY a: ARRAY OF REFANY): REAL =
VAR sum := 0.0;
VAR sum := 0.0;
BEGIN
BEGIN