Hi Sheridan,

On Wed, Dec 3, 2014 at 10:14 AM, <[email protected]> wrote:

>
>
> Hi all,
>
> How do you terminate a string in Smalltalk so that it can be written to a
> file?
>

You don't need to.  Smalltalk objects include their size so there is no
need to add a null byte to recognise their end.  One may need to copy a
string to add a null byte if passing a string to e.g. C, but inside the
system no null termination is ever needed.  You might want to read some
treatment of the Smalltalk object model such as the last section of the
Blue Book, or the Back to teh Future paper or my presentation on SPur at
ESUG 2014, or...

Thanks,
>
> Sheridan
>


-- 
best,
Eliot

Reply via email to