__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.

Re: __traits and std.traits and constructors

2010-11-14 Thread Philippe Sigaud
On Sun, Nov 14, 2010 at 11:16, Jonathan M Davis jmdavisp...@gmx.com 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

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 jmdavisp...@gmx.com 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