guile-devel
[Top][All Lists]
Advanced

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

Re: guile-vm 0.3


From: Keisuke Nishida
Subject: Re: guile-vm 0.3
Date: Tue, 03 Apr 2001 23:55:16 -0400
User-agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.99 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

At 03 Apr 2001 21:39:05 -0500,
Rob Browning wrote:
> 
> Though I'm having some trouble with current guile-core and guile-vm
> from CVS.  I followed your instructions, but I get the error included
> below.

Oops, sorry.  Could you try the following patch?

--- guile-vm/module/system/base/module.scm.~1.1.~       Sat Mar 31 06:04:27 2001
+++ guile-vm/module/system/base/module.scm      Tue Apr  3 23:38:48 2001
@@ -216,7 +216,3 @@
 (let ((core (make-vmodule)))
   (env-define *root-package* 'core core)
   (hash-fold (lambda (s v d) (env-define core s v)) #f (builtin-bindings)))
-
-(let ((module (make-vmodule)))
-  (env-define (global-ref 'System::Base) 'module module)
-  (import-old-module! module (current-module)))

The real problem is that there is a hard-coded path in module.scm:

(define *root-package*
  (make-multi-package '("/usr/local/share/guile/site")))

But since we are not going to use my module system, we can omit
this entirely.  I'll apply a better solution some time later.

> > My VM still lacks some important features, especially exception
> > handling.  This must be implemented before it becomes ready for
> > use.
> 
> So is it that the VM can't compile code that uses catch/throw, or that
> byte-compiled code can't handle exceptions thrown to (or past) it?
> The former would be OK, since we aren't using exceptions much in our
> code right now.  The latter though, would as you suggest, have to be
> fixed first.

Both.  If you throw an exception to the VM, it goes through it.



reply via email to

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