diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-08-14 20:56:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-08-14 20:56:54 -0700 |
commit | 725112ef78d8c6e655db4a99fc69e54d0ed1eb5a (patch) | |
tree | 89b456d55b28fb07a41483aa838555ee3035c1a5 /stdlib/txr-case.tl | |
parent | f94ae27b4021b61eabe50d3b088b8d8917bfdfe8 (diff) | |
download | txr-725112ef78d8c6e655db4a99fc69e54d0ed1eb5a.tar.gz txr-725112ef78d8c6e655db4a99fc69e54d0ed1eb5a.tar.bz2 txr-725112ef78d8c6e655db4a99fc69e54d0ed1eb5a.zip |
math: tofloat and toint in user-defined arithmetic.
* arith.c (tofloat_s, toint_s): New symbol variables.
(tofloat, toint): If the argument is a COBJ, handle
it via do_unary_method.
(arith_init): Initialize new symbol variables.
The functions tofloat, toint, tofloatz and tointz.
are now registered here, rather than eval_init.
* eval.c (eval_init): Remove registrations of tofloat,
toint, tofloatz and tointz.
* tests/016/ud-arith.tl: New tests.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib/txr-case.tl')
0 files changed, 0 insertions, 0 deletions