项目作者: brackendev

项目描述 :
Source code for Chris Double's "Self Demo: Creating a bank account object"
高级语言: Self
项目地址: git://github.com/brackendev/BankAccountDemo-Self.git
创建时间: 2018-04-29T17:55:15Z
项目社区:https://github.com/brackendev/BankAccountDemo-Self

开源协议:MIT License

下载


“[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)


BankAccountDemo-Self

Source code for Chris Double’s Self Demo: Creating a bank account object.

Installation

  1. Install and setup Self.
  2. Download this project.
  3. Via a Self shell, specify the correct path and Do it:

    1. modules init
    2. registerTree: 'bankaccount'
    3. At: '/Users/username/Downloads/BankAccountDemo-Self-master/bankaccount'
  4. Next, Do it:

    1. bootstrap read: 'bankaccount'
    2. From: 'applications'
    3. InTree: 'bankaccount'
    4. IfFail: nil
  5. Lastly, Get it:

    1. bankaccount clone

(For steps 3-5, see the shell object in Screenshots below.)

Example Usage

Via a bankaccount object, Do it:

  1. deposit: 50
  1. withdraw: 25

(See the bankaccount object in Screenshots below.)

Screenshots

Screenshot 1

Screenshot 2

Author

Bracken Spencer

License

BankAccountDemo-Self is released under the MIT license. See the LICENSE file for more info.