April 04, 2004 Re: double to int conversion | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthias Becker | "Matthias Becker" <Matthias_member@pathlink.com> wrote in message news:c4oftn$2200$1@digitaldaemon.com... > I proved that dmd doesn't follow this rule (haven't tested with the current > version. I did it with 0.7x, can't remember the exact version). So have you > fixed it? I didn't want you to do so. Damn. > > (The thread was called "A bug that I like", if I remember right) I don't remember that particular problem. If it is in the bug database, however, it will remain there until it gets fixed. |
April 04, 2004 Re: double to int conversion | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthias Becker | Matthias Becker wrote: >>You make a good argument for that case. However, I decided against the C++ >>notion of 'best fit' because the combination of all the best fit rules is >>very confusing. There are 3 levels of matching in D (rather than an >>arbitrarilly large number with several special case rules tossed in) which >>are 1) exact match 2) match with implicit conversions and 3) no match. Sure, >>in D, you'll have a cast or two extra once in a while, but the payoff is a >>clear set of simple rules, rather than a morass of confusing, subtle ones. > > > I proved that dmd doesn't follow this rule (haven't tested with the current > version. I did it with 0.7x, can't remember the exact version). So have you > fixed it? I didn't want you to do so. Damn. > > (The thread was called "A bug that I like", if I remember right) I don't know that Walter changed anything. Perhaps he already fixed the bug before he found saw your post. I think I found your earlier post (http://www.digitalmars.com/drn-bin/wwwnews?D/24040) and Walter's reply (http://www.digitalmars.com/drn-bin/wwwnews?D/24465). I got the same error message that Walter seemed to get: fn_ovrld.d(17): function func overloads void(Foo foo) and void(Bar bar) both match argument list for func I tested it with DMD 0.81. (I guess it's time for me install DMD 0.82.) -- Justin http://jcc_7.tripod.com/d/ |
Copyright © 1999-2021 by the D Language Foundation