[Issue 1732] Mixin can not be instantiated
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 16 10:02:57 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1732
------- Comment #4 from aarti at interia.pl 2007-12-16 12:02 -------
I think about the issue differently. For me its more consistency issue.
It should be just enough when compiler checks:
1. if template body is syntacticly correct (but not as a whole, so variables
doesn't have to be declared)
2. compiler instantiates template or paste mixin, then it tries to compile it
as a whole
That should be enough to use it.
But when I think about it, this probably will cause problems for compiler (more
compilations than necessary). And probably that's why macros will be
introduced...
--
More information about the Digitalmars-d-bugs
mailing list