https://issues.dlang.org/show_bug.cgi?id=17229

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Steven Schveighoffer <[email protected]> ---
The issue is that LockingTextWriter accepts anything but character range. What
is happening (I think) is that lockingTextWriter.put(someUbyteArray) is
actually putting each ubyte into the stream one at a time after converting each
ubyte into a dchar through integer promotion.

This can't be the intention. I think instead of the constraint

is(ElementType!A : const(dchar))

what we need is something more like:

is(Unqual!(ElementType!A) == dchar)

This might break code, but I think code that is already broken, such as the
example, no?

--

Reply via email to