mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 04:10:18 +02:00
guile-private-ref
* module/language/elisp/compile-tree-il.scm (compile-guile-private-ref): New special operator.
This commit is contained in:
parent
433fc448dd
commit
12a9311f17
2 changed files with 8 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
||||||
compile-labels
|
compile-labels
|
||||||
compile-let*
|
compile-let*
|
||||||
compile-guile-ref
|
compile-guile-ref
|
||||||
|
compile-guile-private-ref
|
||||||
compile-guile-primitive
|
compile-guile-primitive
|
||||||
compile-function
|
compile-function
|
||||||
compile-defmacro
|
compile-defmacro
|
||||||
|
@ -671,6 +672,11 @@
|
||||||
((,module ,sym) (guard (and (list? module) (symbol? sym)))
|
((,module ,sym) (guard (and (list? module) (symbol? sym)))
|
||||||
(make-module-ref loc module sym #t))))
|
(make-module-ref loc module sym #t))))
|
||||||
|
|
||||||
|
(defspecial guile-private-ref (loc args)
|
||||||
|
(pmatch args
|
||||||
|
((,module ,sym) (guard (and (list? module) (symbol? sym)))
|
||||||
|
(make-module-ref loc module sym #f))))
|
||||||
|
|
||||||
;;; guile-primitive allows to create primitive references, which are
|
;;; guile-primitive allows to create primitive references, which are
|
||||||
;;; still a little faster.
|
;;; still a little faster.
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
(compile-labels . labels)
|
(compile-labels . labels)
|
||||||
(compile-let* . let*)
|
(compile-let* . let*)
|
||||||
(compile-guile-ref . guile-ref)
|
(compile-guile-ref . guile-ref)
|
||||||
|
(compile-guile-private-ref . guile-private-ref)
|
||||||
(compile-guile-primitive . guile-primitive)
|
(compile-guile-primitive . guile-primitive)
|
||||||
(compile-function . function)
|
(compile-function . function)
|
||||||
(compile-defun . defun)
|
(compile-defun . defun)
|
||||||
|
@ -52,6 +53,7 @@
|
||||||
labels
|
labels
|
||||||
let*
|
let*
|
||||||
guile-ref
|
guile-ref
|
||||||
|
guile-private-ref
|
||||||
guile-primitive
|
guile-primitive
|
||||||
function
|
function
|
||||||
defun
|
defun
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue