Re: Simple Program Won't Run
bill-auger <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.gnu.general |
|---|---|
| Organization | parabola |
| Message-ID | <20210116163144.72c26c9a@parabola> |
it does conform to the spec though - the REPL syntax is exactly the same as a static file - the dot is not a statement terminator as with C-like languages - it is a statement separator, which means it is optional, where there is only one single statement - the same is true in a method definition - it is the reason why you rarely see a dot after the final LOC of a method definition - you will find that you can enter multiple statements on a single line in the REPL, just the same as you could in a static file; but they must be delimited by the separator char st> 2 print . 3 print 22 33