ympbyc / LittleSmallscript

JavaScript with Smalltalk's syntax

Home Page:http://ympbyc.github.io/LittleSmallscript/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

method-local variables are not overriding instance variables

ympbyc opened this issue · comments

+Object subclass:#Foo variables:#(#aaa #bbb).

!Foo hello: aaa
  aaa "aaa becomes _this.aaa"
!.

!Foo hmmm
  | bbb |
  bbb := 1 "bbb becomes _this.bbb"
!.

Scope management tactics have to be enhanced in order to fix this issue

It seems that this is actually an intended behaviour in Little Smalltalk.