Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an instance of anonymous class #361

Closed
jcubic opened this issue Apr 12, 2024 · 1 comment
Closed

Create an instance of anonymous class #361

jcubic opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@jcubic
Copy link
Owner

jcubic commented Apr 12, 2024

This doesn't work:

(new (class Object))

But this do:

(define x (class Object))
(new x)
;; ==> #<x>
@jcubic jcubic added the bug Something isn't working label Apr 12, 2024
@jcubic jcubic added this to the 1.0 milestone Apr 12, 2024
@jcubic
Copy link
Owner Author

jcubic commented Apr 12, 2024

It's actually an error of REPL when printing the instance of anonymous class.

jcubic added a commit that referenced this issue Apr 12, 2024
@jcubic jcubic closed this as completed Apr 12, 2024
jcubic added a commit that referenced this issue May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant