int opEquals(Object), and other legacy ints
Walter Bright
newshound at digitalmars.com
Fri Jul 21 01:36:50 PDT 2006
Stewart Gordon wrote:
> There seem to be a number of leftovers from before we had a bool type,
> and many people were using the int type to pass booleans around.
They are typed as returning int for efficiency reasons. These functions
often appear in performance critical loops, where an extra instruction
or two makes a difference.
More information about the Digitalmars-d-bugs
mailing list