CTFE bug causes null check to pass on null pointers (Issue 7602)
Jacob Carlborg
doob at me.com
Wed Mar 21 05:26:25 PDT 2012
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
More information about the Digitalmars-d
mailing list