Re: Tyepof regex

2014-01-13 Thread Nicolas Sicard
On Monday, 13 January 2014 at 20:59:28 UTC, Brad Anderson wrote: There is also std.traits.ReturnType you can use for more complex types or voldemort types. Or: typeof(regex("")) BTW, how does ReturnType handle overloads? -- Nicolas

Re: Tyepof regex

2014-01-13 Thread Tiberiu Gal
On Monday, 13 January 2014 at 20:59:28 UTC, Brad Anderson wrote: On Monday, 13 January 2014 at 20:53:55 UTC, Tiberiu Gal wrote: what is the type returned by regex function? I want to store a regex member because I need to reuse it multiple times. Can this be done? class A { protected SomeT

Re: Tyepof regex

2014-01-13 Thread Tiberiu Gal
On Monday, 13 January 2014 at 20:53:55 UTC, Tiberiu Gal wrote: what is the type returned by regex function? I want to store a regex member because I need to reuse it multiple times. Can this be done? class A { protected SomeTypeName regexPattern; void load() { string str; //

Re: Tyepof regex

2014-01-13 Thread Brad Anderson
On Monday, 13 January 2014 at 20:53:55 UTC, Tiberiu Gal wrote: what is the type returned by regex function? I want to store a regex member because I need to reuse it multiple times. Can this be done? class A { protected SomeTypeName regexPattern; void load() { string str; //