C string to D without memory allocation?
    Shriramana Sharma via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Dec 21 01:46:58 PST 2015
    
    
  
Jonathan M Davis via Digitalmars-d-learn wrote:
> If it isn't, all that means is that the
> array's capacity will be 0, so it's going to have to reallocate
So it's safe to return a string produced by fromStringz without having to 
worry that the user would append to it?
Then why is it marked @system? Only because one cannot be sure that the 
input point refers to a valid null-terminated string?
-- 
Shriramana Sharma, Penguin #395953
    
    
More information about the Digitalmars-d-learn
mailing list