How to loop through characters of a string in D language?

Stanislav Blinov stanislav.blinov at
Sat Dec 11 09:40:47 UTC 2021

On Saturday, 11 December 2021 at 09:34:17 UTC, Ola Fosheim 
Grøstad wrote:

> void donttrythisathome(string s, char stripchar) @trusted {
> 	import core.stdc.stdlib;
>     char* begin = cast(char*)alloca(s.length);

A function with that name, and calling alloca to boot, cannot be 
@trusted ;)

More information about the Digitalmars-d-learn mailing list