References to symbols in functions?
From: Peter Seibel (peter_at_javamonkey.com)
Date: 06/30/04
- Next message: Kenny Tilton: "Re: I wish I'd never met Lisp"
- Previous message: Joe Marshall: "Re: James Gosling built Emacs"
- Next in thread: Tim Bradshaw: "Re: References to symbols in functions?"
- Reply: Tim Bradshaw: "Re: References to symbols in functions?"
- Reply: Thomas Schilling: "Re: References to symbols in functions?"
- Reply: Frode Vatvedt Fjeld: "Re: References to symbols in functions?"
- Reply: Joe Marshall: "Re: References to symbols in functions?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jun 2004 03:49:22 GMT
So I was thinking about how function calls work and how a function
such as foo:
(defun foo () (bar))
when compiled needs to contain a reference to the symbol object BAR.
I.e. it can't just jump to the address of the BAR function because BAR
may get redefined. So my question is this: are the references to
symbols in a compiled function just another kind of object reference
when it comes to garbage collection? That is, if the garbage collector
moves the symbol object does the pointer to it from within the
function get dealt with in the same way. The more I think about it the
more it seems that would be the natural way to do it but who knows.
Also I imagine this might differ from implementation to implementation
so I'd be interested to hear about different implementation
techniques. Implementors?
-Peter
--
Peter Seibel peter@javamonkey.com
Lisp is the red pill. -- John Fraser, comp.lang.lisp
- Next message: Kenny Tilton: "Re: I wish I'd never met Lisp"
- Previous message: Joe Marshall: "Re: James Gosling built Emacs"
- Next in thread: Tim Bradshaw: "Re: References to symbols in functions?"
- Reply: Tim Bradshaw: "Re: References to symbols in functions?"
- Reply: Thomas Schilling: "Re: References to symbols in functions?"
- Reply: Frode Vatvedt Fjeld: "Re: References to symbols in functions?"
- Reply: Joe Marshall: "Re: References to symbols in functions?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|