How to loop through characters of a string in D language?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sat Dec 11 09:58:36 UTC 2021
On Saturday, 11 December 2021 at 09:40:47 UTC, Stanislav Blinov
wrote:
> 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 ;)
:-)
But I am very trustworthy person! PROMISE!!!
More information about the Digitalmars-d-learn
mailing list