- Subject: Re: [jed-users] setting programming style
- From: "Klaus Schmid" <klaus.schmid@xxxxxx>
- Date: Sat, 18 Jan 2003 00:51:42 +0100
I wrote:
> define assbyname( keyword, value)
> {
> if ( keyword == NULL) return @value= $1;
> if ( is_defined( keyword) >= 0)
> error( "unallowed keyword in "+_function_name);
>
> $1= value;
> eval( "assbyname(,&"+keyword+")");
> }
>
> Improvements welcome :)
Looking into site.sl, custom_variable, this seems far way better.
define assign_by_name( name, value)
{
variable r= __get_reference( name);
@r= value;
}
Klaus
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2003 date index]
[2003 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]