This is the mail archive of the guile-emacs@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: pass by value / pass by reference


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]