Overloading '!'
Derek Parnell
derek at psych.ward
Wed Jun 7 00:09:33 PDT 2006
What is the rationale for not allowing the '!' operator to be overloaded?
I ask because I had developed a Bool class but I can't use it in place of
'bool' in cases where the syntax is ...
if (! mybool ) ...
I can overload the '~' operator but that is not as natural for boolean
thinking as that operation is more suited to arithmetical functionality.
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
7/06/2006 5:05:59 PM
More information about the Digitalmars-d
mailing list