Re: __traits and std.traits and constructors

2010-11-14 Thread Jonathan M Davis
On Sunday 14 November 2010 07:13:43 Philippe Sigaud wrote: > On Sun, Nov 14, 2010 at 11:16, Jonathan M Davis wrote: > > Is there a way to get use constructors with traits functions that take a > > function? For instance, functionAttributes!(func) takes a func and tells > > you whether it's pure, n

Re: __traits and std.traits and constructors

2010-11-14 Thread Philippe Sigaud
On Sun, Nov 14, 2010 at 11:16, Jonathan M Davis wrote: > Is there a way to get use constructors with traits functions that take a > function? For instance, functionAttributes!(func) takes a func and tells you > whether it's pure, nothrow, etc. However, giving it the type doesn't work > (i.e. > fu

__traits and std.traits and constructors

2010-11-14 Thread Jonathan M Davis
Is there a way to get use constructors with traits functions that take a function? For instance, functionAttributes!(func) takes a func and tells you whether it's pure, nothrow, etc. However, giving it the type doesn't work (i.e. functionAttributes!T), and giving it this doesn't work (i.e. funct