[Issue 1734] Inconsistent mixin behaviour
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 29 10:47:32 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1734
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
Summary|Inconsistant mixin behaviour|Inconsistent mixin behaviour
------- Comment #2 from smjg at iname.com 2007-12-29 12:47 -------
Depreciated? What?
Or do you mean deprecated? Still, I disagree. Templates are designed to
contain declarations, not statements. Blocks of statements are a different
concept from blocks of declarations. Declarations can be in any scope;
statements can only be within a function.
So my thought is that template mixins should remain for inserting declarations
in whatever scope, and something new should be created for inserting statements
in a function.
--
More information about the Digitalmars-d-bugs
mailing list