TempAlloc review starts now
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Jun 6 12:07:10 PDT 2011
On 6/6/11, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> 1. If this uses ElemType!(R)[] as the return type, duping a char[] will
> give you a dchar[]. I don't think this is very desirable.
It think auto return could be used here and then inside the body:
static if (isSomeChar!(ElementType!R))
(ElementEncodingType!R)[] result;
return result;
Something like that.
More information about the Digitalmars-d
mailing list