[Aldor-l] Generators

Peter Broadbery p_broadbery at hotmail.com
Fri Nov 16 05:05:21 EST 2007


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..
>

Stick approach didn't work well - too many issues about where symbols get imported once the error messages are ripped out. I'd suggest a redesign of how import initialisation is implemented, but it's a non-trivial task.

Peter


_________________________________________________________________
100’s of Music vouchers to be won with MSN Music
https://www.musicmashup.co.uk



More information about the Aldor-l mailing list