mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 00:37:35 +02:00
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:
parent
c2929af714
commit
19e0346968
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue