summaryrefslogtreecommitdiffstats
path: root/stdlib/optimize.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-21 22:12:11 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-21 22:12:11 -0700
commit68b8a1a7f2244632bda048c985f654108cd0351f (patch)
treef47a065ff5bf1b50d024c0b0a9f388549bd15051 /stdlib/optimize.tl
parentc140bac5b058935e550b0d19fadd7dd822ce9f7a (diff)
downloadtxr-68b8a1a7f2244632bda048c985f654108cd0351f.tar.gz
txr-68b8a1a7f2244632bda048c985f654108cd0351f.tar.bz2
txr-68b8a1a7f2244632bda048c985f654108cd0351f.zip
compiler: recognize ignore and use functions
We want the ignore function to go away; but if variables are mentioned, to suppress unused warnings on them. * stdlib/compiler.tl (%functional-funs%): Remove nilf from list since we are handling it specially. (compiler comp-fun-form): Recognize (ignore ...) and (nilf ...) forms, transforming them into (progn .... nil). In the case of ignore, walk the arguments: if any look like variables, mark them used. Also, add the use function to the pattern which handles identity, since it is a synonym.
Diffstat (limited to 'stdlib/optimize.tl')
0 files changed, 0 insertions, 0 deletions