Thread overview | |||||
---|---|---|---|---|---|
|
March 09, 2020 Docs 6.9.4: Implicit Conversion to bool | ||||
---|---|---|---|---|
| ||||
Having a function `f' overloaded for argument types `bool' and `ulong', the specs guarantee, that for `f( 1uL)' the boolean overload of `f' is called. What is this good for? |
March 09, 2020 Re: Docs 6.9.4: Implicit Conversion to bool | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | On 3/9/20 11:35 AM, Manfred Nowak wrote: > Having a function `f' overloaded for argument types `bool' and `ulong', the specs guarantee, that for `f( 1uL)' the boolean overload of `f' is called. > > What is this good for? You're not the first person to ask. https://github.com/dlang/DIPs/blob/master/DIPs/rejected/DIP1015.md -Steve |
March 09, 2020 Re: Docs 6.9.4: Implicit Conversion to bool | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Monday, 9 March 2020 at 16:44:55 UTC, Steven Schveighoffer wrote:
> You're not the first person to ask.
Accepted.
|
Copyright © 1999-2021 by the D Language Foundation