I was working on revamping an old library (Canvases library) when I noticed something strange:
So usually
ask (this [caller V]) for ((this [script V])$>) $:>
Reports the current script from the caller context.
But in WHEN SLOT SIGNALS, it reports the menu script.
So instead of:
this is the full script that called it...
It reports:
when slot [ V] signals [ V]
the menu script that called it...
So I’m guessing you want from this, the script that contained the block that contained the slot?
No, I want the caller script. Using this on an
example ::reporter
block should give
((example ::reporter) $>)
And for
report(example ::reporter)
the block will have
({report(example ::reporter)} $>).
Which is what I described.
dardoro
5
You want the lexical scope of the slot being edited.
But this script is not running when you edit the input slot.
Yeah, I know. I need it for metaprogramming.