Re: printNl question
bill-auger <[email protected]> Tue, 20 Apr 2021 10:59:16 -0400
| Newsgroups | gmane.comp.lang.smalltalk.gnu.general |
|---|---|
| Organization | parabola |
| Message-ID | <[email protected]> |
On Mon, 19 Apr 2021 11:22:27 -0600 Duke wrote: > 1. always terminated a line of coding with a period/full-stop > 2. never put a period/full-stop after a [ ..... ] the period/full-stop is not a required terminator, as in the C language - it is separator, between message chains - that is: it is not required after the final LOC a period/full-stop can follow a right-square-bracket ']' in most syntax - all of these forms are valid syntax st> ablock := [ 'ima block' displayNl ] st> ablock := [ 'ima block' displayNl ] . st> ablock := [ 'ima block' displayNl ] . ablock value st> ablock := [ 'ima block' displayNl ] . ablock value . i suppose that you are seeing an error with a period/full-stop after a method definition - that syntax is something of a special form for gnu-smalltalk - most smalltalk dialects do not use square-brackets to enclose class and method definitions see: https://www.gnu.org/software/smalltalk/manual/gst.html#Syntax