Re: Pharo-project Digest, Vol 28, Issue 282

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Pharo-project Digest, Vol 28, Issue 282

jamesl
Hi Eliot,

I cant use those thinks because im not in Smalltalk at the time, im in Java on the JVM.
(Did someone say 'challenge')

I thought about the store question in the shower this morning and I think it means
take the top of the stack but dont pop it.  Please let me know if Im wrong?

Rgs, James.

> Hi James,
>
> perhaps you could use the implementations of
> ContextPart pushRemoteTemp:inVectorAt: popIntoRemoteTemp:inVectorAt:
> storeIntoRemoteTemp:inVectorAt:
> (& Interpreter pushRemoteTemp:inVectorAt: popIntoRemoteTemp:inVectorAt: if
> you have them to hand) as the spec and check the documentation. The intent
> is that k..k is the index of the temp containing the remote vector and j..j
> is the index in the remote temp vector.
>
> cheers
> Eliot
>


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Pharo-project Digest, Vol 28, Issue 282

Eliot Miranda-2
Hi James,

2010/8/30 James Ladd <[hidden email]>
Hi Eliot,

I cant use those thinks because im not in Smalltalk at the time, im in Java on the JVM.

Ah, OK.  Now I understand.
 
(Did someone say 'challenge')

I thought about the store question in the shower this morning and I think it means
take the top of the stack but dont pop it.  Please let me know if Im wrong?

That's right.  So...

140   10001100 kkkkkkkk jjjjjjjj Push Temp At kkkkkkkk In Temp Vector At: jjjjjjjj

tempVector := activation localAt: kkkkkkkk.
value := tempVector[jjjjjjjj].
activation push: value

141   10001101 kkkkkkkk jjjjjjjj Store Temp At kkkkkkkk In Temp Vector At: jjjjjjjj

tempVector := activation localAt: kkkkkkkk.
tempVector[jjjjjjjj] := activation stackTop.

142   10001110 kkkkkkkk jjjjjjjj Pop and Store Temp At kkkkkkkk In Temp Vector At: jjjjjjjj
 
tempVector := activation localAt: kkkkkkkk.
tempVector[jjjjjjjj] := activation stackTop.
activation popStack.

Clear?

If so, I'd be very happy to improve my documentation based on your reading and my clarification.

best,
Eliot


Rgs, James.

> Hi James,
>
> perhaps you could use the implementations of
> ContextPart pushRemoteTemp:inVectorAt: popIntoRemoteTemp:inVectorAt:
> storeIntoRemoteTemp:inVectorAt:
> (& Interpreter pushRemoteTemp:inVectorAt: popIntoRemoteTemp:inVectorAt: if
> you have them to hand) as the spec and check the documentation. The intent
> is that k..k is the index of the temp containing the remote vector and j..j
> is the index in the remote temp vector.
>
> cheers
> Eliot
>


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project