Why char[] is not @nogc on this case

Adam D. Ruppe destructionator at gmail.com
Fri May 25 00:04:10 UTC 2018


On Thursday, 24 May 2018 at 23:55:24 UTC, SrMordred wrote:
> //Error: @nogc delegate onlineapp.main.__lambda1 cannot call 
> non- at nogc function std.range.chain!(char[], 
> char[]).chain.Result.front
>
> Why?

phobos automatically decodes utf8 into dchars. This can throw a 
new utf exception.


More information about the Digitalmars-d-learn mailing list