Source code for Chris Double's "Self Demo: Creating a bank account object"
“[Self] was first used as an experimental test system for language design in the 1980s and 1990s. … Self was designed mostly by David Ungar and 0:118">Randall Smith in 1986 while working at Xerox PARC. Their objective was to push forward the state of the art in object-oriented programming language research…” — Wikipedia)
Source code for Chris Double’s Self Demo: Creating a bank account object.
Via a Self shell, specify the correct path and Do it:
modules init
registerTree: 'bankaccount'
At: '/Users/username/Downloads/BankAccountDemo-Self-master/bankaccount'
Next, Do it:
bootstrap read: 'bankaccount'
From: 'applications'
InTree: 'bankaccount'
IfFail: nil
Lastly, Get it:
bankaccount clone
(For steps 3-5, see the shell object in Screenshots below.)
Via a bankaccount object, Do it:
deposit: 50
withdraw: 25
(See the bankaccount object in Screenshots below.)
Bracken Spencer
BankAccountDemo-Self is released under the MIT license. See the LICENSE file for more info.