HI Gary

 

Perhaps you could explain why the periods pose a problem?

In C or Pascal, for example, a semicolon is mandatory as a statement separator.

What editor are you using and what is the desired intent of the reconfiguration?

 

Sent from Mail for Windows 10

 

From: Gary Highberger
Sent: Friday, January 15, 2021 10:56 PM
To: help-smalltalk
Subject: Re: Simple Program Won't Run

 

Hi Help-Smalltalk,

 

I put periods after each line and then the Smalltalk program ran just fine.

Is there a way to avoid having to put periods after each line? What end of

statement characters besides period does Smalltalk expect? Maybe my editor

can be reconfigured accordingly.

 

Thanks everyone,

Gary

 

 

On Fri, Jan 15, 2021, 12:38 PM Gary Highberger <gary.highber...@gmail.com>

wrote:

 

> Hi Everybody,

> 

> Obviously what programming skills I have are other than Oops :-)

> 

> What Oops rule(s) does the following program, autoRun,st, break? Why is

> MyA written as #MyA in the error message? Why doesn't the compiler

> understand MyA? It's defined in the immediately preceding line.

> 

> Gary Highberger

> 

> cat autoRun.st

> MyA := Array new: 10

> MyA at: 1 put: 'one'

> 3 printNl

> 'hello world' printNl

> 

> $ gst autoRun.st

> Object: 10 error: did not understand #MyA

> MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)

> SmallInteger(Object)>>doesNotUnderstand: #MyA (SysExcept.st:1448)

> UndefinedObject>>executeStatements (autoRun.st:1)

> 3

> 'hello world'

> $

> 

> 

 

  • 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