February 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9421



--- Comment #10 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-12 20:44:36 PST ---
(In reply to comment #9)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > The idea being that getting a pointer to the internal string shouldn't change the contents.
> > 
> > Ok, but then what do we need scopedData for? If we're returning a char* and it's not zero-terminated I don't see how it can be used.
> > 
> 
> You would use it in the same places as scopedString, but when using OutBuffer for binary instead of text.  i.e. when you know the data won't be escaped.

Code in DMD already uses .data directly though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »