[Bug 26] inout foreach does not modify BitArrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 18 16:23:26 PST 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=26





------- Comment #1 from unknown at simplemachines.org  2006-03-18 18:23 -------
Created an attachment (id=4)
 --> (http://d.puremagic.com/bugzilla/attachment.cgi?id=4&action=view)
Naive, simple fix.

This adds to the unittests in bitarray.d for this bug, and calls
opIndexAssign() on each bit (before the break.)

This would seem to make foreach over bit arrays slower, but then it's still not
exceedingly fast anyway to call a function for every bit so I'd suggest the
opIndexCall isn't going to hurt anyone much.

-[Unknown]


-- 




More information about the Digitalmars-d-bugs mailing list