LIPS-scheme / lips

Scheme based powerful lisp interpreter in JavaScript
https://lips.js.org
Other
427 stars 35 forks source link

Create an instance of anonymous class #361

Closed jcubic closed 7 months ago

jcubic commented 7 months ago

This doesn't work:

(new (class Object))

But this do:

(define x (class Object))
(new x)
;; ==> #<x>
jcubic commented 7 months ago

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