diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-05-07 06:35:09 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-05-07 06:35:09 -0700 |
commit | c9ffbddd284ab9fbb5c2198f4c2a7072448b7988 (patch) | |
tree | da7e1363b9fb2f694748fd83aede581cb9e9e8f5 /mpi/mpi.c | |
parent | d4d26ed0e32faa1ab8c2fbe78661a48f4f801d89 (diff) | |
download | txr-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