guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 20/36: defconst, defvar: proclaim special at compile-tim


From: Christopher Allan Webber
Subject: [Guile-commits] 20/36: defconst, defvar: proclaim special at compile-time
Date: Fri, 25 Mar 2016 20:03:46 +0000

cwebber pushed a commit to branch wip-elisp
in repository guile.

commit bfc3ffe7d50586fd9bc65044b00173168ba9b631
Author: Robin Templeton <address@hidden>
Date:   Mon Aug 4 23:08:12 2014 -0400

    defconst, defvar: proclaim special at compile-time
    
    (Best-ability ChangeLog annotation added by Christopher Allan Webber.)
    
    * module/language/elisp/compile-tree-il.scm (defconst, defvar): Use
      proclaim-special!.
---
 module/language/elisp/compile-tree-il.scm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/module/language/elisp/compile-tree-il.scm 
b/module/language/elisp/compile-tree-il.scm
index 2716c8f..b23d939 100644
--- a/module/language/elisp/compile-tree-il.scm
+++ b/module/language/elisp/compile-tree-il.scm
@@ -478,6 +478,7 @@
 (defspecial defconst (loc args)
   (pmatch args
     ((,sym ,value . ,doc)
+     (proclaim-special! sym)
      (make-seq
       loc
       (make-call loc
@@ -491,12 +492,14 @@
 (defspecial defvar (loc args)
   (pmatch args
     ((,sym)
+     (proclaim-special! sym)
      (make-seq loc
                (make-call loc
                           (make-module-ref loc runtime 'proclaim-special! #t)
                           (list (make-const loc sym)))
                (make-const loc sym)))
     ((,sym ,value . ,doc)
+     (proclaim-special! sym)
      (make-seq
       loc
       (make-call loc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]