[Issue 1734] Inconsistent mixin behaviour

2013-02-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1734


Andrej Mitrovic  changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #4 from Andrej Mitrovic  2013-02-04 
18:01:08 PST ---
Worst case scenario you can still use string mixins:

string init()
{
return q{

a = 5;

};
}

void main()
{
int a;
mixin(init);
}

So it's not all bad.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1734] Inconsistent mixin behaviour

2012-11-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1734


Don  changed:

   What|Removed |Added

   Severity|major   |enhancement


--- Comment #3 from Don  2012-11-12 07:21:56 PST ---
Current behaviour is intentional.

Even this does not compile:
-
template init() {
  a = 5;
}
-
This is an enhancement request.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---