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

Denis Kudriashov dionisiydk at gmail.com
Wed May 11 09:45:17 UTC 2016


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/ec8184c6/attachment.htm


More information about the Vm-dev mailing list