Hello,
Roger Mason <[email protected]> writes:
> I'm trying mozart for the first time. When I send the following to the
> compiler, some work, some don't:
>
> {Browse 'Hello World!'}
> works.
>
> fun {Max X Y}
> if X>Y then X
> else Y
> end
> end
>
> {Browse {Max 3 5}}
> works.
>
> fun {MaxOfThree X Y Z}
> {Max X {Max Y Z}}
> end
Thank you Justin, Torsten and Ashis. It works as expected now with
'declare' inserted before the definition of MaxOfThree. I was fooled by
the fact that the Max function worked. Now I understand.
Many thanks,
Roger
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users