summaryrefslogtreecommitdiffstats
path: root/mpi/mpi.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-05-07 06:35:09 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-05-07 06:35:09 -0700
commitc9ffbddd284ab9fbb5c2198f4c2a7072448b7988 (patch)
treeda7e1363b9fb2f694748fd83aede581cb9e9e8f5 /mpi/mpi.c
parentd4d26ed0e32faa1ab8c2fbe78661a48f4f801d89 (diff)
downloadtxr-c9ffbddd284ab9fbb5c2198f4c2a7072448b7988.tar.gz
txr-c9ffbddd284ab9fbb5c2198f4c2a7072448b7988.tar.bz2
txr-c9ffbddd284ab9fbb5c2198f4c2a7072448b7988.zip
compiler: warn on misleading references in load-time.
If code does something like this, we produce a warning: (let ((var 42)) (load-time (+ var 3))) A load-time form occurs in an empty lexical environment, so this code appears right but actually cannot work; the appearance is a mere trompe d'oeil. * share/txr/stdlib/compiler.tl (misleading-ref-check): New function. (compiler comp-load-time-lit): Apply misleading-ref-check.
Diffstat (limited to 'mpi/mpi.c')
0 files changed, 0 insertions, 0 deletions