Mercerenies / gdlisp

Lisp on the Godot platform
GNU General Public License v3.0
139 stars 1 forks source link

Subclassing in REPL #118

Open Mercerenies opened 1 year ago

Mercerenies commented 1 year ago

The REPL has some funny ideas of which classes can be subclassed:

> (defclass Foo (Reference) (defn foo () 1))
()
> (defclass Bar (Foo) (defn foo () (lambda () (super:foo))))
Error: On line 1 column 2: Error 0027: Cannot extend direct load of file /tmp/__gdlisp_replfile9pp0J.gd

Expected behavior: The subclass Bar is accepted.