On Thu, Jun 18, 2009 at 10:38 PM, john
skaller<skal...@users.sourceforge.net> wrote:
>
>> One way we could limit this a little bit is to make value arrays
>> immutable, where these would be type errors:
>>
>> # val x = 1,2,3;
>> # x.[0] = 5; <- type error
>> # proc foo[N] (x:array[int,N]) { x.[0] = 5; } <- type error
>>
>
> This is already an error, just not a type error.

Oh? It works for me:

val x = 1,2,3;
println x;
x.[0] = 0;
println x;
proc foo[N] (x:array[int,N]) { x.[0] = 6; }
foo x;
println x;

prints out:

(1, 2, 3)
(0, 2, 3)
(6, 2, 3)

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to