[Aldor-l] Generators

Peter Broadbery p_broadbery at hotmail.com
Mon Nov 12 16:47:26 EST 2007



> Date: Mon, 12 Nov 2007 10:23:28 -0500
> From: watt at scl.csd.uwo.ca
> To: martin.rubey at univie.ac.at
> CC: aldor-l at aldor.org
> Subject: Re: [Aldor-l] Generators
>
> I don't know whether we said it in tha AUG, but it is intended that you
> cannot assign to loop variables inside the loop.
>
> Consequently they can be used in type expressions and having dependent
> crosses as "for" indices should be allowed.
>
> -- Stephen
>
> 

Unfortunately, the compiler isn't keen on them being used in types.  

"bug2.as", line 10:        (x, 0$SPF(x)) for x in 1..10;
                    .........................^
[L10 C26] #1 (Error) `x' is used in a type, so must be constant, and so cannot be assigned to.

This seems to be built into scobind.c. I'll hit it with a stick & see what happens..

Peter

_________________________________________________________________
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
http://www.newhotmail.co.uk


More information about the Aldor-l mailing list