opCast and implicit casting

Jarrett Billingsley kb3ctd2 at yahoo.com
Tue May 16 13:31:32 PDT 2006


"Nils Hensel" <nils.hensel at web.de> wrote in message 
news:e4bu98$1mq6$1 at digitaldaemon.com...

> I have always wondered why implicit casting is disallowed even when a 
> class has opCast defined for this cast's type? Isn't it obvious through 
> the l-value alone? Why explicit?

Because Walter thinks that implicit non-trivial casts are a Bad Thing (TM) 
(and in most cases, I'm inclined to agree). 





More information about the Digitalmars-d-learn mailing list