Created
May 29, 2012 21:25
-
-
Save takikawa/2830805 to your computer and use it in GitHub Desktop.
Inits are weird #2
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 characters
;; What should happen here? | |
(define c% (class object% (super-new) (init a))) | |
(define d% (class c% (super-new) (init #:a))) | |
(new d% #:a 5) ; which `a` does it instantiate? | |
(new d% #:a 5 #:a 6) ; presumably this is not allowed | |
; (if it is, then it's not like keywords) | |
; (if it's not, the above leaves an init un-initialized) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment