diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-01-13 21:00:10 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-01-13 21:00:10 -0800 |
commit | 487e5f4c8c11ba9c1691b1cdd9723311e7b58c7a (patch) | |
tree | 57064d32b97ad0992842a5949f4127f5043f167d /eval.c | |
parent | f711590ceae82493b8a87eba0bfaaed30af06c34 (diff) | |
download | txr-487e5f4c8c11ba9c1691b1cdd9723311e7b58c7a.tar.gz txr-487e5f4c8c11ba9c1691b1cdd9723311e7b58c7a.tar.bz2 txr-487e5f4c8c11ba9c1691b1cdd9723311e7b58c7a.zip |
The identity function gets an alias: use.
* eval.c (eval_init): Register "use" as alias for identity.
* txr.1: Documented use function.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4674,6 +4674,7 @@ void eval_init(void) reg_fun(list_s, list_f); reg_fun(intern(lit("list*"), user_package), func_n0v(list_star_intrinsic)); reg_fun(identity_s, identity_f); + reg_fun(intern(lit("use"), user_package), identity_f); reg_fun(intern(lit("typeof"), user_package), func_n1(typeof)); reg_fun(intern(lit("subtypep"), user_package), func_n2(subtypep)); reg_fun(intern(lit("typep"), user_package), func_n2(typep)); |