Stephan Bergmann <[EMAIL PROTECTED]> writes:

> Third, the implicit option you proposed where you can implicitly use
> xDerived for the up-cast.
> 
> That the third most closely mimics plain pointers does not
> automatically qualify it as the best solution.  Too much implicit
> conversion can make code too obscure and fragile, as we probably all
> have learned the hard way.
> 
This statement is as true in general as is doesn't apply to this
case. The only thing the proposed change will facilitate is the
implicit upcast a naked ptr-to-interface has offered since ages. All
of us should be used to that behaviour, have employed it countless
times, and found it convenient (I for myself did, at least). This is
in no way comparable to e.g. the automatic conversions of ints to
strings, where semantics really get obscured.

Cheers,

-- 

Thorsten

If you're not failing some of the time, you're not trying hard enough.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to