"[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 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.
- Self "Mandarin" 2017.1 reference platform.
-
Install and setup Self.
-
Download this project.
-
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.