summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-07-07 06:37:58 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-07 06:37:58 -0700
commit7375b5a42a77eeb3ac3f085b3d026adbb93ad5a9 (patch)
tree399d56dfe53a8ac4c9e89f6c75c6e447d2dacddd /stream.c
parent381ed03066f89602011d82892fe59d4dfff07e00 (diff)
downloadtxr-7375b5a42a77eeb3ac3f085b3d026adbb93ad5a9.tar.gz
txr-7375b5a42a77eeb3ac3f085b3d026adbb93ad5a9.tar.bz2
txr-7375b5a42a77eeb3ac3f085b3d026adbb93ad5a9.zip
with-resources: undocumented nil skip behavior.
Paul A. Patience discovered the hidden "feature" of with-resourcers, that the three-argument form of the binding (var init cleanup) causes the with-resources form to terminate if init returns nil. The (var init) syntax doesn't generate this logic. * stdlib/with-resources.tl (with-resources): Do not emit the when form unless <= 265 compatibility is in effect. * tests/012/oop-mac.tl: New file. * txr.1: Compat note added.
Diffstat (limited to 'stream.c')
0 files changed, 0 insertions, 0 deletions