summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-04-05 15:22:37 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-04-05 15:22:37 -0700
commit5ca3693a7b5d65fd5aa67c737e7a60b457db2281 (patch)
tree83c85bce2661b588a0445619fc58f121359c4468 /lib.h
parent06ce08dc2c0d2db522c5f6293cf9a28c2c22d24a (diff)
downloadtxr-5ca3693a7b5d65fd5aa67c737e7a60b457db2281.tar.gz
txr-5ca3693a7b5d65fd5aa67c737e7a60b457db2281.tar.bz2
txr-5ca3693a7b5d65fd5aa67c737e7a60b457db2281.zip
compiler: better shared test for sys:switch.
* share/txr/stdlib/compiler.tl (compiler comp-switch): The shared test here is both inaccurate and O(n^2). It tests that all the remaining branches of the code are tails of the first branch. However, this is not strict enough: we need to also test that the tails are in their order of appearance. We can do that in O(n) time.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions