Dear all,
I just came across a behaviour of Oz' pattern matching I don't quite
understand. The following simple expression returns [a#1 b#1 c#1 d#1 e#1]:
{Map [a b c d e] proc {$ A ?X} X=A#1 end}
I did expect the second expression to behave exactly as the first. Hover, this
expression blocks instead:
{Map [a b c d e] proc {$ A X#1} A=X end}
I don't understand why -- am I missing something obvious here? Not that this
poses any problems as such -- it only took me quite some time to find out why
my program blocks...
Best,
Torsten
--
Torsten Anders
http://strasheela.sourceforge.net/
http://torsten-anders.de/
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users