Created
October 28, 2015 13:34
Revisions
-
mudphone created this gist
Oct 28, 2015 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ ;;=> (var 0) ;;Traceback (most recent call last): ;; File "<input>", line 1, in <module> ;; File "<input>", line 4, in __init__ ;;TypeError: object.__init__() takes no parameters (defclass var [PSet] [] (defn --init-- [self c] (.--init-- (super) self [c])) ;; (defn --new-- [self c] ;; (.--new-- (super) self (pmap {c True}))) (defn --str-- [self] (% "(var %s)" (first self))) (defn --repr-- [self] (str self)))