kyle-github / littlesmalltalk

Little Smalltalk fork
BSD 3-Clause "New" or "Revised" License
53 stars 8 forks source link

Some small enhancements #5

Closed SamSandq closed 1 year ago

SamSandq commented 1 year ago

I've added two enhancements to my system to make lst more compatible with 'standard' Smalltalk:

1) modified the Parser method with support for assignment with := in addition to <-

tokenIsArrow (token isKindOf: String) ifFalse: [ ^ false ]. ^ token = '<-' or: [token = ':=']

I could not verify that the corresponding modification to bootstrap.c:

line 1594:

   if ((*p == '<') && (*(p + 1) == '-') ||
        (*p == ':') && (*(p + 1) == '=')) {         //SSQ+

is enough to affect the same to the initial image creation. Could you please comment?

2) added the following method to String to support standard string concatenation with comma;

, arg ^ (self + arg)

kyle-github commented 1 year ago

This looks pretty close. I'll try to make this a change in the next few days.

kyle-github commented 1 year ago

I just checked this into my current dev branch. Thanks for pointing this out and providing the fixes!

kyle-github commented 1 year ago

Released as v4.7.2.