Cannot implicitly convert expression `true` of type `bool` to `Flag`
Ali Çehreli
acehreli at yahoo.com
Fri Oct 16 15:20:24 UTC 2020
On 10/15/20 11:50 PM, Walter Bright wrote:
> On 10/15/2020 2:33 PM, Ali Çehreli wrote:
>> [...]
>
> Named parameters takes care of this.
Maybe for some people, yes. (Assuming calling with named parameters is
optional.) But I would still be uncomfortable defining a function with
naked bools like this:
void foo(bool shouldDoThis, bool shouldDoThat) {
// ...
}
The possibility of calling it wrong is still there. Is that purely the
caller's fault? What do others think?
Ali
More information about the Digitalmars-d
mailing list