You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When we skip a message, it puts nil on the stack instead of self #31
When you skip a message send, the skip command puts nil on the stack as a replacement value.
For example, if we have this:
a :=1+2
and if we skip the + message and then step over the assignment, a will be equal to nil.
We would expect it to be equal to 1 because we expect that skipping a message would mean that the message hasn't been sent to the receiver. So we would expect that the result of skipping a message is the receiver itself.
Furthermore, if the result of skipping a message is nil, it means that if we skip a message in a message sends chain, we can't step without having an exception signalled because nil doesn't understand any message. Letting the receiver on the stack instead of putting nil allows more possibilities at this level
changed the title [-]When we skip a message, it puts nil on the stack instead of nil[/-][+]When we skip a message, it puts nil on the stack instead of self[/+]on Jul 5, 2022
Activity
[-]When we skip a message, it puts nil on the stack instead of nil[/-][+]When we skip a message, it puts nil on the stack instead of self[/+]