Simple class definition error in smalltalk
问题 I am trying to use smalltalk with smalltalk/x-jv branch. I have following simple code: Object subclass: Myclass[ |mainval| init [mainval := 555] getmainval [^mainval] ] gc := Myclass new. gc init. gc getmainval printNl. I am trying to run it on command line with stc command of smalltalk/x-jv, but it it not working. Following is the error: $ ./stc testsrc.st testsrc.st, line 1: Error: syntax error in 'class definition' near "Myclass" (char/token=286 / 0x11e) (fileIn expression) Where is the