emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Unicode Lisp reader escapes


From: Stefan Monnier
Subject: Re: [PATCH] Unicode Lisp reader escapes
Date: Mon, 08 May 2006 13:39:15 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Fread is intended to be called from Lisp (it’s a subr).  Functions called
> from Lisp do not need to GCPRO their arguments, because the garbage
> collector knows about the arguments, as it knows about all objects
> allocated in Lisp.

s/called/callable/
Are you sure we have such a convention?

> C code that calls functions intended to be called from Lisp is optimistic
> at best if, without having checked, it relies on the assumption that that
> the arguments to those functions will be GCPROed.

As far as I know, the GCPRO convention for arguments is mostly the
following:

GCPRO args you pass to functions iff those functions can GC and you need
to use the arg after the function returns.


        Stefan




reply via email to

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