"".dup is null
    Steven Schveighoffer 
    schveiguy at yahoo.com
       
    Mon May  4 09:34:36 PDT 2009
    
    
  
On Mon, 04 May 2009 12:09:09 -0400, Georg Wrede <georg.wrede at iki.fi> wrote:
> If I remember correctly, string literals are stored with a null  
> appended, so as to make them easier to use with OS calls, etc. Could it  
> be that "" stores a 1-byte string, consisting with just this null? Then  
> this behavior would be understandable.
Yes, that makes complete sense, thanks.
-Steve
    
    
More information about the Digitalmars-d-learn
mailing list