diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-03-17 06:44:21 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-03-17 06:44:21 -0700 |
commit | 047647e0896f5b8b7d08df0c34c18c224b7fa2eb (patch) | |
tree | 376cee63cf41083cbf2b7b26c502b440fa0d18ac /struct.c | |
parent | e318f2a001b72f279c9f8637e5f4e7592e29eb37 (diff) | |
download | txr-047647e0896f5b8b7d08df0c34c18c224b7fa2eb.tar.gz txr-047647e0896f5b8b7d08df0c34c18c224b7fa2eb.tar.bz2 txr-047647e0896f5b8b7d08df0c34c18c224b7fa2eb.zip |
trace: detect inheritance, change name and warn.
When a method is traced that is actually derived from
another struct type, we convert the (meth ...) name
to refer to that type and issue a warning.
* share/txr/stdlib/trace.tl (sys:trace-canonicalize-name): New
function.
(sys:trace): Canonicalize name, and trace the canonicalized
name. Warn if it is different from the original name.
(sys:untrace): Likewise for untracing.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions