RosettaCodeData/Task/Conditional-structures/Modula-3/conditional-structures-4.mod3

8 lines
141 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
TYPECASE ref OF
| NULL => IO.Put("Null\n");
| CHAR => IO.Put("Char\n");
| INTEGER => IO.Put("Integer\n");
ELSE
IO.Put("Something\n");
END;