[Top][All Lists]

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

Re: How and when to use GCPRO?

From: Daniel Colascione
Subject: Re: How and when to use GCPRO?
Date: Mon, 27 Dec 2010 17:33:20 -0800
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20101207 Thunderbird/3.1.7

On 12/27/10 5:01 PM, Stefan Monnier wrote:
>>> Actually, both Fcar and Fcdr can GC (by signalling an error which
>>> triggers the debugger).
>> But the debugger will not return.
> Oh, right,

Discussions like this worry me. What if the function is later changed to
call something that can GC? What if it's used in some new context? If
it's not utterly performance-critical code, isn't it better to be safe
than sorry and GCPRO anyway? It's not as if it's an expensive operation.
Premature optimization is the root of all evil, after all.

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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