[comp.lang.smalltalk] String literal bug?

mhn@lulea.telesoft.se (Mats Halvarsson) (05/16/91)

I believe I have found a bug in Objectworks ST80R4. It seems that
the system can only handle up to 255 (or 256) string literals per
method. I made a C program that generated a Smalltalk method with
one literal per line. When executing "replay all" in the changes
manager I got an exception. The system uses some sort of table to
store the string literals and integer indexes as pointers to strings
in the table. The problem is that these integer indexes are stored
as bytes in a byte stream. Obviously, it is an error to store the
number 256 as a byte.

Is there some way to avoid this, other than to reduce the number
of string literals?

Mats Halvarsson
Telesoft
Lulea
Sweden

email: mhn@lulea.telesoft.se

fax # : +46-920-75490