summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-01-24 11:12:47 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-01-24 11:12:47 -0800
commit87d89d601fba2dd1acc20e723b922da0e7210f1b (patch)
treeffe52f6b62eef66882180d434c0872ca9a18b82c /lib.h
parente82099ecc159c79f184a15e253a728a6e5e3c7ec (diff)
downloadtxr-87d89d601fba2dd1acc20e723b922da0e7210f1b.tar.gz
txr-87d89d601fba2dd1acc20e723b922da0e7210f1b.tar.bz2
txr-87d89d601fba2dd1acc20e723b922da0e7210f1b.zip
printer: do not render @(rcons ...) in .. notation.
This fixes the following print-read consistency issue. Both of these objects print as @a..@b. 1> '@(rcons a b) @a..b 2> '(rcons @a b) @a..b We want only the second case. After the this fix: 1> '(rcons @a b) @a..b 2> '@(rcons a b) @(rcons a b) * lib.c (obj_print_impl): In the sys:expr case, we check whether the head of the argument is rcons. If so, we adjust a few local variables and branch directly to the generic list case via goto to print the argument as (rcons ...) without conversion to dotdot range notation.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions