cps icon indicating copy to clipboard operation
cps copied to clipboard

prefix leg names with original proc name

Open zevv opened this issue 4 years ago • 2 comments

That would make trace() output much more readable.

zevv avatar Jul 01 '21 14:07 zevv

I don't have any great ideas on how to do this trivially without cheating with a global or something, but here's what I came up with:

We get more strict about using newAnnotation, and we have it pass the original cps procedure's identifier and maybe a bunch of other interesting data. Then we use debugAnnotation to also shadow makeContProc with a closure that first mutates the name argument. To that end, I rewrote cpsTryExcept in bf9f4766d8ee946fbca9d3d48149c32b7b4cd241 to also use debugAnnotation. I think that's the only outstanding case that both calls makeContProc and was lacking the debugAnnotation syntax.

disruptek avatar Jul 02 '21 03:07 disruptek

This is also a #190 problem.

disruptek avatar Sep 17 '21 04:09 disruptek