Created
October 28, 2015 13:34
-
-
Save mudphone/170c0a38606ec6c958ff to your computer and use it in GitHub Desktop.
This file contains hidden or 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 characters
;;=> (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))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment