The Science of Programming/SwayPresentations/Objects/Examples2

 Examples 

How about aspects?

Here's a stack:

function stack {       var store = :null; function push(item) {           store = cons(item,store); item; }       function pop {           var item = car(store); store = cdr(store); item; }       function empty? {           store == :null; }       this; }

Next Previous Top