Inferred Type for Explicit Cast

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 18 15:20:06 PST 2014


On Thursday, 18 December 2014 at 22:46:06 UTC, Jonathan Marler 
wrote:
>     foo(cast() s);      // Another possible syntax

That already has meaning in D: it strips off qualifiers like 
casting immutable to mutable. So cast(auto) would be better.


More information about the Digitalmars-d mailing list