|
From: | Ludovic |
Subject: | Re: Simple Program Won't Run |
Date: | Fri, 15 Jan 2021 20:34:00 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 |
Le 15/01/2021 à 18:38, Gary Highberger a écrit :
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
Hi Gary, you forgot the end of statement marker : the dot ("."). example: myArray := Array new: 10. And an advice, you should start your variables with a lower case letter. -- Ludovic
[Prev in Thread] | Current Thread | [Next in Thread] |