explicit castable to bool for predicate restraints?

monarch_dodra monarchdodra at gmail.com
Tue Dec 18 12:16:18 PST 2012


On Tuesday, 18 December 2012 at 10:08:12 UTC, Jonathan M Davis 
wrote:
>
> We're probably stuck with std.algorithm allowing implict 
> conversions to bool
> due to the fact that a fair bit of it has accepted that for a 
> while, but
> accepting anything which explictly casts to bool would be 
> tantamount to
> turning explicit casts into implicit casts and would be very 
> dangerous.
>
> [SNIP]
>
> - Jonathan M Davis

Hum...

For now, I'll simply remove the newly enforced restrictions then, 
as it may break existing code.

I'll put in more thinking before doing anything else.


More information about the Digitalmars-d mailing list