Re: What's the fastest way to check if a slice points to static data

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 24 07:21:23 PDT 2017


ketmar wrote:

> p.s.: btw, druntime tries to avoid that edge case by not checking for 
> trailing out-of-bounds zero if string ends exactly on dword boundary. it 
> will miss some strings this way, but otherwise it is perfectly safe.

oops. not druntime, phobos, in `std.string.toStringz()`.


More information about the Digitalmars-d-learn mailing list