[Top][All Lists]

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

Re: mutating C binding arguments?

From: Lars J. Aas
Subject: Re: mutating C binding arguments?
Date: Wed, 4 Oct 2000 19:41:47 +0200
User-agent: Mutt/1.2.5i

On Wed, Oct 04, 2000 at 07:30:13PM +0200, Michael Livshin wrote:
: "Lars J. Aas" <address@hidden> writes:
: >   SCM arg1 = ...
: >   SCM arg2 = ...
: >   gh_call2( gh_lookup("values"), arg1, arg2 );
: > 
: > That's good enough for me... :)
: if you are serious about this, call `gh_lookup("values")' once when
: initializing your program, keep the result in a global variable and
: use that -- or else things might be slower than you expect them to be.

Are you sure gh_lookup("values") is constant?  I'd expect it to change
from invocation to invocation of call-with-values...

  Lars J

reply via email to

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