Seb <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #4 from Seb <> ---
the problem here is auto-decoding and that it can throw an exception,
The following works as expected:

void main() @nogc {
    import std.ascii: isDigit;
    import std.algorithm: all;
    import std.utf : byCodeUnit;
    auto b = "12".byCodeUnit.all!isDigit;

It has long being proposed to disable auto-decoding by introducing an RCString.
I'm not sure whether this should be kept open, because the issue is not on
`all`'s side - all it does is calling `popFront` of string - which happens to
be @nogc (due to throwing UTF Exceptions).


Reply via email to