[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 17 00:01:22 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14519
--- Comment #30 from Martin Nowak <code at dawg.eu> ---
(In reply to Vladimir Panteleev from comment #29)
> (In reply to Martin Nowak from comment #28)
> > Yes, and you would be better off to handle such protocols as ubyte.
>
> What do you mean? Aren't you contradicting yourself from when you wrote:
>
> > No one is suggesting you operate on ubyte[] as string.
>
> ?
Well, b/c they contain delimited binary and ASCII data, you'll have to find
those delimiters, then validate and cast the ASCII part to a string, and can
then use std.string functions.
--
More information about the Digitalmars-d-bugs
mailing list