Re: Can't create immutable type in template

2012-07-16 Thread Timon Gehr
On 07/16/2012 01:38 AM, Nick Gurrola wrote: import std.stdio; void main() { writeln(typeid(Test!int)); } template Test(T...) { alias immutable(T[0]) Test; } This prints int instead of immutable(int) like I would expect. Is this a bug, or is that what is supposed to happen? This is

Can't create immutable type in template

2012-07-15 Thread Nick Gurrola
import std.stdio; void main() { writeln(typeid(Test!int)); } template Test(T...) { alias immutable(T[0]) Test; } This prints int instead of immutable(int) like I would expect. Is this a bug, or is that what is supposed to happen?

Re: Can't create immutable type in template

2012-07-15 Thread Jonathan M Davis
On Monday, July 16, 2012 01:38:05 Nick Gurrola wrote: import std.stdio; void main() { writeln(typeid(Test!int)); } template Test(T...) { alias immutable(T[0]) Test; } It looks like a bug to me. - Jonathan M Davis