[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Simple Program Won't Run
From: |
Gary Highberger |
Subject: |
Simple Program Won't Run |
Date: |
Fri, 15 Jan 2021 12:38:27 -0500 |
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 Program Won't Run,
Gary Highberger <=