Temporary workaround for name conflict

A longer-term solution will need to address cases where a function is defined with the same name as an inlinable function from another library. These are effectively promoted to primitives, which are not renamed by alpha conversion.

A possible workaround might be to allow a global in the module being compiled to "override" a primitive of the same name. TBD
This commit is contained in:
Justin Ethier 2017-04-27 18:11:57 -04:00
parent c2929af714
commit 19e0346968

View file

@ -1261,7 +1261,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; syntax-rules
(define identifier? symbol?)
(define (identifier->symbol obj) obj)
;(define (identifier->symbol obj) obj)
(define (find-tail pred ls)
(and (pair? ls) (if (pred (car ls)) ls (find-tail pred (cdr ls)))))
@ -1363,7 +1363,8 @@
(next-symbol
(string-append
(symbol->string
(identifier->symbol (car x)))
(car x))
;(identifier->symbol (car x)))
"-ls")))
new-vars))
(once