On 2012-03-21 11:53, Don Clugston wrote:
> You can return structs and arrays, because we have struct literals and
> array literals, but there is no such thing as a class literal. CTFE will
> currently allow you to return a class, but only if it is null.

What about anonymous nested classes, would that kind of like class literals?

http://dlang.org/class.html#anonymous

-- 
/Jacob Carlborg

Reply via email to