[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bugs #10600] top level vars not always initialized
From: |
Chris Dean |
Subject: |
[Bug-kawa] [bugs #10600] top level vars not always initialized |
Date: |
Wed, 06 Oct 2004 17:23:38 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040530 Firefox/0.8 |
This mail is an automated notification from the bugs tracker
of the project: Kawa.
/**************************************************************************/
[bugs #10600] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10600>
Project: Kawa
Submitted by: Chris Dean
On: Wed 10/06/2004 at 21:14
Category: Scheme language
Severity: 5 - Average
Item Group: Unexpected result
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Summary: top level vars not always initialized
Original Submission: When using a top-level variable required from another
module, the
variable may not be initalized. See below for a repeat.
--- /dev/null Tue Sep 14 23:30:46 2004
+++ Foo.scm Wed Oct 6 13:39:20 2004
@@ -0,0 +1,6 @@
+(module-name <Foo>)
+(module-static #t)
+
+(require <Bar>)
+
+(format #t "--- ~S~%" bar-test)
--- /dev/null Tue Sep 14 23:30:46 2004
+++ Bar.scm Wed Oct 6 13:39:35 2004
@@ -0,0 +1,12 @@
+(module-name <Bar>)
+(module-static #t)
+
+(define bar-test '(bar test 1))
+
+;;; This works:
+;;
+;; (define bar-test (make-bars))
+;;
+;; (define (make-bars)
+;; '(bar test 2))
+
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10600>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bugs #10600] top level vars not always initialized,
Chris Dean <=