[Top][All Lists]

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

Re: mutating C binding arguments?

From: Rob Browning
Subject: Re: mutating C binding arguments?
Date: 22 Jan 2001 00:50:35 -0600
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Michael Livshin <address@hidden> writes:

> global_values_proc = scm_permanent_object(gh_lookup("values"));

Is there any substantive difference here between that and this:

  global_values_proc = gh_lookup("values");

Also, another more localized alternative might be to use a static in
the function where "values" is needed, though that could cause
threading problems if the app is using multiple threads...

> doesn't _really_ matter in this case (since `values' sits in the root
> module and isn't likely to go away) but better style anyway.

And if "values" is something that could be redefined, and if the user
would expect that redefinition to take effect everywhere, then I guess
looking it up at every call would be the only alternative.  (Figured
maybe I should point that out for the person asking the original

Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930

reply via email to

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