std.algorithm.remove and principle of least astonishment
spir
denis.spir at gmail.com
Wed Nov 24 12:33:05 PST 2010
On Wed, 24 Nov 2010 16:35:59 +0100
Daniel Gibson <metalcaedes at gmail.com> wrote:
> spir schrieb:
> > What i don't understand is why people who need unsigned bytes do not use ubyte? But instead bug into char. Is this only because of C baggage?
> >
>
> probably because you can't write ubyte[] str = "asdf"; and they want to have
> "ascii-chars" in their ubyte arrays
Oh yes, sorry for the noise. Then, I don't see any other solution else having a proper ByteString type built in the compiler (that would indeed work for any single-byte encoding, not only ASCII), with a corresponding string literal pre/post-fix (one more ;-).
Denis
-- -- -- -- -- -- --
vit esse estrany ☣
spir.wikidot.com
More information about the Digitalmars-d
mailing list