Skip to content

Commit

Permalink
fix is-method?
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Sep 20, 2024
1 parent ce4606c commit df219a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@
(define (is-method? x)
(if (and (pair? x) (eq? (car x) 'method))
(let ((name (cadr x)))
(if (and (pair? name) (eq? (car name) 'globalref))
(let ((name (caddr name)))
(if (and (pair? name) (eq? (car name) 'outerref))
(let ((name (cadr name)))
(if (symbol? name)
#t
#f))
Expand All @@ -243,7 +243,6 @@
(let ((name (if (or (length= m 2) (not (pair? name)) (not (quoted? name))) name (cadr name))))
(cond ((not (pair? name)) name)
((eq? (car name) 'outerref) (cadr name))
;((eq? (car name) 'globalref) (caddr name))
(else name)))))

;; extract static parameter names from a (method ...) expression
Expand Down

0 comments on commit df219a8

Please sign in to comment.