Skip to content

Instantly share code, notes, and snippets.

@takikawa
Created June 18, 2012 21:07
Show Gist options
  • Save takikawa/2950727 to your computer and use it in GitHub Desktop.
Save takikawa/2950727 to your computer and use it in GitHub Desktop.
inits are weird #3
(make-object (class (class object%
(super-new)
(init a b c))
(super-new [a 0] [b 0] [c 0])
(init [d 0]))
1 2)
;; => ; instantiate: unused initialization arguments
;; unused arguments:
;; [a 2]
;; instantiated class name: readline-input::4263 [,bt for context]
(require mzlib/class100)
(make-object (class100 (class100 object% (a b c)
(sequence (super-init)))
([d 0])
(sequence (super-init 0 0 0)))
1 2)
;; => instantiate: too many initialization arguments: 1 2 for class: unsaved-editor2934:5:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment