July 17, 2005 partial order defined for build-in types? | ||||
---|---|---|---|---|
| ||||
byte < short < int < real < double? function std.math2.abs called with argument types: (short) matches both: std.math2.abs(int) and: std.math2.abs(real) |
July 21, 2005 Re: partial order defined for build-in types? | ||||
---|---|---|---|---|
| ||||
Posted in reply to order | <order@d.com> wrote in message news:dbcquo$2stq$1@digitaldaemon.com... > > byte < short < int < real < double? > > > function std.math2.abs called with argument types: > (short) > matches both: > std.math2.abs(int) > and: > std.math2.abs(real) The partial ordering follows the same 3 level rule as function overloading: 1) exact match 2) match with implicit conversions 3) no match There aren't an arbitrarilly large number of levels like C++ has. |
Copyright © 1999-2021 by the D Language Foundation