Thorsten Behrens wrote:
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.

As I wrote before, I consider this kind of a style issue in this case and could probably live with both solutions. That is, from my side: go ahead.

-Stephan

Cheers,

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

Reply via email to