May 16, 2006 opCast and implicit casting | ||||
---|---|---|---|---|
| ||||
Hi group, 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? Regards, Nils |
May 16, 2006 Re: opCast and implicit casting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nils Hensel | "Nils Hensel" <nils.hensel@web.de> wrote in message news:e4bu98$1mq6$1@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). |
Copyright © 1999-2021 by the D Language Foundation