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

  • Simple P... Gary Highberger
    • Re:... Jan Vrany
    • Re:... Ludovic
    • Re:... Gary Highberger
      • ... Jan Vrany
      • ... Mark Bratcher
      • ... derek--- via Users mailing list for the GNU Smalltalk environment
        • ... bill-auger
          • ... s...@pandora.be
            • ... bill-auger
          • ... derek--- via Users mailing list for the GNU Smalltalk environment

Reply via email to