This is the mail archive of the
guile-emacs@sourceware.cygnus.com
mailing list for the Guile project.
Re: pass by value / pass by reference
- To: guile-emacs at sourceware dot cygnus dot com
- Subject: Re: pass by value / pass by reference
- From: Keisuke Nishida <kxn30 at po dot cwru dot edu>
- Date: 15 Mar 2000 19:37:55 -0500
- References: <m3pusv7o8i.fsf@kei.cwru.edu>
Keisuke Nishida <kxn30@po.cwru.edu> writes:
> One problem of my current implementation is that whenever one
> interpreter calls the other one, the arguments are converted
> into the other type; that is, they are passed by value. This
> works fine for some cases, but sometimes it is necessary to pass
> them by reference.
Not exactly. I mean:
[ Value Model ]
scheme-eval lisp-eval
Lisp obj ----------> Scheme obj --------> Lisp obj
[ Reference Model ]
scheme-eval lisp-eval
Lisp obj ----------> Lisp ptr --------> Lisp obj
(as Scheme obj)
So, we are going to import all Lisp objects as pointers.