Re: STk_set_global_var is missing in 2.1.7

From: Erick Gallesio <eg_at_kaolin.unice.fr>
Date: Thu, 08 Jun 1995 11:26:33 +0100

> Giorgio Cesana writes
>
> When I tried to re-build and link my extensions, I discovered that the function
> STk_set_global_var I was using in my code is now missing. I have found a similar
> function (in the extension document :-) ) named STk_set_symbol_value, that has
> the same parameters. All seems to be ok but:
>
Since it was not documented, I thought that I can change its name. I have just
forgot that some people dig into code :->
I apologize for the inconvenience, I should have defined an alias macro.


> WHILE THE SET_GLOBAL FUNCTION WAS PERFORMING A DEFINE/SET IN THE GLOBAL
> ENVIRONMENT, WHERE DOES THE SET_SYMBOL FUNCTION DEFINE/SET THE SPECIFIED SCHEME
> VARIABLE?

In fact SET_SYMBOL sets the global variable (i.e. it sets the value cell of
the given symbol). I have tried to avoid the usage of "variable" since it is
not clear in Scheme. In fact you have symbols and some bindings which
associate a value to a symbol. This explains why I have change the name.
Apart that SET_SYMBOL is a macro whose body is exactly the same that the one
of the C function SET_GLOBAL. I have defined it as a macro with the intent to
use t (rather than its expansion) in the core interpreter to makes things
clearer.


                -- Erick
Received on Thu Jun 08 1995 - 11:26:42 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST