[nem-en] Re: typeof for unbounded polymorphic type

Kamil Skalski kamil.skalski at gmail.com
Sat Feb 10 20:47:15 CET 2007


Try

_ = [1,2, "a" : object];

:)

It is unfortunate coincidence, but array is typed from left to right
and list literal from right to left. This is because [1,2,"aa"]  is
changed into  list.Cons (1, list.Cons (2, list.Cons ("aa", list.Nil)))

2007/2/10, Vladimir Reshetnikov <V.Reshetnikov at gmail.com>:
> One more question.
>
> _ = array[1 : object, 2, "a"]; // Works
> _ = [1 : object, 2, "a"]; // Does not work
>
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list