[Self-interest] Block Question

Luke McNeil lukemcneil61 at gmail.com
Thu Nov 11 05:31:12 UTC 2021

On Wed, Nov 10, 2021 at 11:19 PM Jecel Assumpcao Jr <jecel at merlintec.com>

> If I type (| x = [2] |) into an evaluator and press "Get it" I see an
> object with an 'x' slot that says
> <a block defined in <a string>, line 1>
> Looking at the block it only shows the 'parent*' slot (traits block) and
> the 'value' slot (which is just 2). The block also has a slot pointing
> to the enclosing lexical activation but the outliner doesn't show that.
> We can evaluate 'reflect: self' in the block's outlinter to get a mirror
> and then 'lexicalParent' there and the result is "mirrors deadActivation
> on <a dead activation>)".
> -- Jecel

Interesting.  This inspired me to see if that activation was anything
before it became <a dead activation>.

If I do "Get it" with "(| x = (reflect: [2]) lexicalParent printLine |) x"
it prints out
      "a mirrors methodActivation(on (lobby) <top level expr>)"
The object that you get, however, in the GUI quickly turns from that same
output to "mirrors deadActivation on <a dead activation>)" as the method
So maybe some methodActivation object is being made on the lobby, and [2]
is being evaluated like a top level expr in this context.

Further insight is appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20211111/70126b6d/attachment-0001.html>

More information about the Self-interest mailing list