% $Id: TupleError.oz,v 1.1 2007/11/27 03:02:13 leavens Exp leavens $ % This file is intended to demonstrate what % Mozart error messages "illegal record label" means. % It may be useful for you to feed it to Oz % and see what exact messages are generated, % so you can learn to read such error messages. declare fun {Add3 X} X + 3 end % The line below shows the right way to call a function in Oz {Browse {Add3 4}} % The following line generates "illegal record label" {Browse Add3(4)} % Error, Add3 is a function, not a literal