DIP 52 - Implicit conversions

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Thu Dec 12 06:47:10 PST 2013


On 12/12/13 10:15, Simen Kjærås wrote:
> Simply put, implicit conversions are not bad, nor good. They are exactly what
> you use them for.

Conversely, sometimes you want to be able to say, absolutely explicitly, "This 
function _must_ receive input of _this exact type_ with no implicit conversion 
allowed even if it normally would be."

You and I both encountered that with Don's BigInt code, and I found his solution 
to be elegant but fragile (inasmuch as it's easy for a later maintainer to 
misunderstand why it's the way it is and wrongly "correct" it).

So, you might want to factor that need also into your DIP.


More information about the Digitalmars-d mailing list