help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printNl question


From: bill-auger
Subject: Re: printNl question
Date: Tue, 20 Apr 2021 10:59:16 -0400

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]