Jonathan M Davis <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #9 from Jonathan M Davis <> 2011-07-11 08:58:04 
PDT ---
On a semi-related but not all that related note, I would point out to Steven
that Kenji has made pull requests related to, one of which will
make use opCast for user-defined conversions if a user-defined type
has an opCast, so if you don't think that opCast should be used for such
situations (that is, if you equate that to dangerous as you've been discussing
here), then you should comment on the pull request:

If no one else comments on those changes soon, they're likely to go in soon.
But they're giving a way to avoid having to use casts in your own code, so I
would think that they'd be an improvement, because then casts are used _less_
rather than more.

In any case, as for this particular bug, casts are definitely a blunt
instrument, so they tend to be legal whether you really want them to or not.
They're not quite as blunt as they are in C (e.g. they _do_ do checks when
converting between classes), but they're still pretty blunt. It's one of the
reasons that it's typically better to use rather than casting.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to