cast()x - a valid expression?

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Jun 1 13:27:46 PDT 2011


On 6/1/11, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> It gets even better:
>
> char[] x = "abc".dup;
> assert(is(typeof(cast(const)x) == const(char[]));

Nothing unusual about that?

DMD seems to be full of exciting little easter eggs! It's fun for the
whole D family.


More information about the Digitalmars-d mailing list