Abstract type: Difference between revisions

Content added Content deleted
(No such concept in Apple II's BASICs or in Scratch)
Line 491: Line 491:
var .items ()
var .items ()
def .enstack(object)
def .enstack(object)
.items = (cons object .items)
setq .items (cons object .items)
def .destack()
def .destack()
var tmp (car .items)
var tmp (car .items)
.items = (cdr .items)
setq .items (cdr .items)
tmp</lang>
tmp</lang>
Now we can tag an object that conforms to the Interface:
Now we can tag an object that conforms to the Interface: