[Vm-dev] Why "context top" points to "tempVector" and not to variable value?

Denis Kudriashov dionisiydk at gmail.com
Wed May 11 09:51:06 UTC 2016


Here better example to see problem:

| t d |
[ t := 'test'.
d := 'test2' ] value.
t.
^ d halt


Stack top here will show #('test' test2') which is completely confusing

2016-05-11 11:45 GMT+02:00 Denis Kudriashov <dionisiydk at gmail.com>:

> Hi.
>
> Try to debug following script:
>
> | t |
> [ t := 'test' ] value.
> ^ t halt
>
>
> You will see in debugger #('test') as stack top value. Why it is not
> 'test'?
> I understand that hidden arrays used for variables which are used in
> closures. But why "context top" in that cases points to vector instead of
> variable value?
>
> Best regards,
> Denis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160511/c0ed51f6/attachment-0001.htm


More information about the Vm-dev mailing list