[Aldor-l] Generators
Ralf Hemmecke
ralf at hemmecke.de
Mon Nov 12 09:19:18 EST 2007
Martin Rubey wrote:
> Ralf Hemmecke <ralf at hemmecke.de> writes:
>
>> On 11/08/2007 07:01 PM, Laurentiu Dragan wrote:
>>> Ralf Hemmecke wrote:
>>>> PS: Now we need someone who incorporates this patch into the SVN
>>>> repository. Laurentiu?
>>> I patched the sources and checked the two examples: aaa.as and bbb.as
>>> and they work.
>> Thank you. Could you perhaps add these and the examples of Martin to the
>> regression testsuite, if you include Peter' patch?
>
> I think that our examples do not the right testing.
But at least they do some testing...
> For example, they do not
> test interaction with the suchthat clause, interaction with other iterators,
> what happens when we update one of the variables as in, for example
So we should even add more testcases.
> for (a,b) in l repeat if a=1 then b := 2;
>
> etc. Is the latter illegal, btw.?
Why should that be illegal?
Would you say that
For
#include "aldor"
import from Integer;
l: List Integer := [1,2];
for a in l repeat a := 42;
the compiler says
parrot:~/scratch>aldor aaa.as
"aaa.as", line 5: for a in l repeat a := 42;
..................^
[L5 C19] #1 (Error) Cannot explicitly assign a `for' variable.
But where is this in the AUG?
Ralf
More information about the Aldor-l
mailing list