Docs 6.9.4: Implicit Conversion to bool

Manfred Nowak svv1999 at hotmail.com
Mon Mar 9 15:35:42 UTC 2020


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?


More information about the Digitalmars-d-learn mailing list