help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] problems with nil balance in gst tutorial


From: Brian Wisti
Subject: Re: [Help-smalltalk] problems with nil balance in gst tutorial
Date: Tue, 2 Nov 2004 09:59:22 -0800 (PST)

--- Paolo Bonzini <address@hidden> wrote:

> > I downloaded and compiled GNU Smalltalk 2.1.8 this morning, and
> started
> > working my way through the tutorial. For some reason, I get stuck
> > partway into the Account class. "Account printNl" always shows 'an
> > Account with balance: nil', and attempting to use the "spend" or
> > "deposit" methods results in error messages. My code and output is
> at
> > the end of this message.
> 
> Is it an intel system?
> 
> Paolo

Yes, it is on an Intel system. The real problem was that I'd made a
typographical error, and forgot to make new a class method. 

-- Correction needed:

!Account class methodsFor: 'instance initialization'!
new
...
! !

--

Thanks to Jim White for pointing that out offlist.

There's still the question of why I got some failures on "make
regression", but it's not something I am worried about now that I can
get through the tutorial :-)

Kind Regards,

Brian Wisti
http://coolnamehere.com/




reply via email to

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