[Aldor-l] with
Ralf Hemmecke
ralf at hemmecke.de
Tue Jun 7 05:10:15 EDT 2011
Dear Stephen,
What is happening here? Shouldn't both variants compile without problems?
Looks like the compiler is not smart enough to figure out that Cat is a
Category.
What else could "Cat" be inside the "with" of MyDom? There is only *one*
identifier Cat in scope at this place, so I'd believe that the extra
"with" should be unnecessary. No?
Ralf
cat x.as
---------------------------------------
Category: with == add;
define Cat: Category == with;
MyDom: with {
#if WITH
Dom: Cat with;
#else
Dom: Cat;
#endif
} == add {
Dom: Cat == add {}
}
---------------------------------------
More information about the Aldor-l
mailing list