[Issue 9421] (Compiler internals) Change OutBuffer's interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 7 16:43:20 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9421



--- Comment #5 from yebblies <yebblies at gmail.com> 2013-02-08 11:43:19 EST ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > 
> > The functions shouldn't append a '\0' if data already ends with one, and I'm
> > not sure scopedString should _ever_ modify it.  Other than that it looks right.
> 
> Then I don't understand what you mean by: "Add scopedString which checks for a
> '\0' then return a reference to the internal buffer".
> 
> It checks for a \0, and does what if it doesn't find it?

assert(0)

The idea being that getting a pointer to the internal string shouldn't change
the contents.  Maybe it would be more useful to append a zero, I don't know.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list