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

defmethod within defun is not compilable #324

Open
k-okada opened this issue Sep 11, 2018 · 1 comment
Open

defmethod within defun is not compilable #324

k-okada opened this issue Sep 11, 2018 · 1 comment

Comments

@k-okada
Copy link
Member

k-okada commented Sep 11, 2018

The code like

(deftest test-graph ()
 (defmethod node
   (:cost () 0))

is not compilable,

10: at (let ((o (namestring (merge-pathnames ".o" "irteus/test/graph.l"))) (so (namestring (merge-pathnames ".so" "irteus/test/graph.l")))) (compiler:compile-file "irteus/test/graph.l\" :o o) (if (probe-file so) (load so) (exit 1)))
irteusgl unittest-error: cannot find method :cost in #<graph #X56bff50>, exitting...
[ERROR] test #<graph #X56bff50> failed ... (cannot find method 40).

C.f.
euslisp/jskeus@406c992
euslisp/jskeus@ff03179

@Hunter11zolomon
Copy link

I couldn't replicate this error.
Function definition works on my interpreter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants