Subject: Re: local state variables unique to different objects
From: Jason Lillywhite <jason.lillywhite gmail.com>
Date: Wed, 18 Mar 2009 14:12:20 +0900
References: 331474331475
In-reply-to: 331475
ah, thank you.
Interesting how in Lisp (Scheme) you have to do:
(begin (set! balance (- balance amount))
balance)
to decrement the balance and change it's state - using the set!
--
Posted via http://www.ruby-forum.com/.