diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-05-25 13:49:32 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-05-25 13:49:32 +0200 |
commit | 1f71c5202c3573871f9c37df26d62bd9ed255c0b (patch) | |
tree | 438f095abe3f3f9ace299b60cf5d815b575ebc42 | |
parent | febefc6c6d58a28025e4ac96fa173d52938f3e2e (diff) | |
download | ell-1f71c5202c3573871f9c37df26d62bd9ed255c0b.tar.gz ell-1f71c5202c3573871f9c37df26d62bd9ed255c0b.tar.xz ell-1f71c5202c3573871f9c37df26d62bd9ed255c0b.zip |
Make setting "set" also return the value
-rw-r--r-- | ell.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -898,6 +898,7 @@ defn (fn_set) { struct item *value; if ((value = name->next)) return check (ctx, (value = new_clone (value))) + && check (ctx, (*result = new_clone (value))) && set (ctx, name->value, value); // We return an empty list for a nil value |