At 4:14 PM +0000 5/21/02, "Peter Gibbs" (via RT) wrote:
>* New field 'buffer' in STRING points to the start of the allocated buffer.
>I have put this field immediately after the Buffer fields, in case we want
>to create a generic subclass of Buffer with the same functionality
>* The existing 'bufstart' field is redefined as pointing to the start of the
>string data, this is what all code outside the memory manager expects anyway
>* Similarly, buflen means the distance from bufstart to the end of the
>buffer, rather than the physical size of the buffer

I think I'd like these differently. STRING is a subclass of Buffer, 
and the bufstart and buflen fields in Buffers point to the actual 
start of memory and length of allocated data. I'd rather keep it that 
way, and have the 'real' string length and string start be extra 
fields in the STRING part.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                       teddy bears get drunk

Reply via email to