summaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-21 21:48:05 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-21 21:48:05 -0700
commitc140bac5b058935e550b0d19fadd7dd822ce9f7a (patch)
treea6c8965d7cf5512bb7373003e7ae36a43b79e91a /stdlib
parentc12706b1d801814af4a5efd327dac9adc4f99e9f (diff)
downloadtxr-c140bac5b058935e550b0d19fadd7dd822ce9f7a.tar.gz
txr-c140bac5b058935e550b0d19fadd7dd822ce9f7a.tar.bz2
txr-c140bac5b058935e550b0d19fadd7dd822ce9f7a.zip
New function: ignore, synonym of nilf.
This will be an official mechanism for indicating deliberately unused variables. * eval.c (eval_init): Register ignore intrinsic, binding to the same function object as nilf. * stdlib/compiler.tl (%const-foldable-funs%): Mention ignore function, next to its nilf synonym. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/constfun.tl2
-rw-r--r--stdlib/doc-syms.tl5
2 files changed, 4 insertions, 3 deletions
diff --git a/stdlib/constfun.tl b/stdlib/constfun.tl
index bef32cc5..0f66ac41 100644
--- a/stdlib/constfun.tl
+++ b/stdlib/constfun.tl
@@ -47,7 +47,7 @@
memq memql memqual rmemq rmemql rmemqual countq countql countqual
posq posql posqual rposq rposql rposqual eq eql equal meq meql mequal
neq neql nequal max min clamp bracket take drop if or and progn
- prog1 prog2 nilf tf display-width sys:fmt-simple
+ prog1 prog2 nilf ignore tf display-width sys:fmt-simple
sys:fmt-flex sys:fmt-join packagep
symbolp keywordp bindable stringp length-str
coded-length cmp-str string-lt str= str< str> str<= str>= int-str
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl
index 067d3701..4046ea49 100644
--- a/stdlib/doc-syms.tl
+++ b/stdlib/doc-syms.tl
@@ -985,6 +985,7 @@
("ignbrk" "N-02391683")
("igncr" "N-02391683")
("ignerr" "N-007287AC")
+ ("ignore" "N-007E0508")
("ignpar" "N-02391683")
("ignwarn" "N-02552A58")
("imaxbel" "N-02391683")
@@ -1324,7 +1325,7 @@
("next-file" "N-00839D2F")
("nf" "N-0267AE6D")
("nil" "N-015134D8")
- ("nilf" "N-032070EB")
+ ("nilf" "N-007E0508")
("ninth" "N-01B0FA33")
("nl0" "N-03BD477F")
("nl1" "N-03BD477F")
@@ -1994,7 +1995,7 @@
("test-neq-set-indent-mode" "N-01A1F89C")
("test-set" "N-036C7E9E")
("test-set-indent-mode" "N-01A1F89C")
- ("tf" "N-032070EB")
+ ("tf" "N-007E0508")
("third" "N-01B0FA33")
("throw" "D-0053")
("throwf" "N-015466AD")