calysto_scheme icon indicating copy to clipboard operation
calysto_scheme copied to clipboard

Create classes and instances

Open dsblank opened this issue 5 years ago • 0 comments

In Python, you can create a new class like this:

A = type("A", (SUPERCLASS, ...), {ATTRIBUTE: ..., })

If we do it that way, and an ATTRIBUTE is a Scheme function, we have to manually pass in self.

dsblank avatar Aug 29 '18 14:08 dsblank