Make setting "set" also return the value
This commit is contained in:
parent
febefc6c6d
commit
1f71c5202c
1
ell.c
1
ell.c
|
@ -898,6 +898,7 @@ defn (fn_set) {
|
||||||
struct item *value;
|
struct item *value;
|
||||||
if ((value = name->next))
|
if ((value = name->next))
|
||||||
return check (ctx, (value = new_clone (value)))
|
return check (ctx, (value = new_clone (value)))
|
||||||
|
&& check (ctx, (*result = new_clone (value)))
|
||||||
&& set (ctx, name->value, value);
|
&& set (ctx, name->value, value);
|
||||||
|
|
||||||
// We return an empty list for a nil value
|
// We return an empty list for a nil value
|
||||||
|
|
Loading…
Reference in New Issue