[Issue 4124] toString() for BitArray and more
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 25 11:50:18 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4124
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-25 11:50:14 PST ---
It can use a simple
representation like the Python bitarray:
0101001010100001
What about this instead:
0101_0010_1010_0001
I think it would also be useful to be able to initialize a bitarray with an
integral literal, e.g.:
BitArray bta = bitArray!0101_0010_1010_0001;
It would statically check that all digits are 0 or 1 (is there a bit twiddling
trick for this?).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list