<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i am trying to access some string literals in a
smalltalk OrderedCollection that is passed as an arg to a named
primtive.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in smalltalk:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> primMyPrimitive:
anOrderedCollectionOfStrings</FONT></DIV>
<DIV><FONT face=Arial size=2>
<primtive:'primMyPrimitive' module:'foo'></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the c source:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> EXPORT(int)
primMyPrimitive(void) {</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> int
collectionOop, strElementOop;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> collectionOop
= interpreterProxy->stackObjectValue(0);</FONT></DIV>
<DIV><FONT face=Arial size=2>
strElementOop = interpreterProxy->stObjectat(collectionOop, 1);</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>now i know there is data at index 1, but this
method is erroring out in squeak. i am writing the c source myself. is there
some sort of cast i need to do with the origianl collectionOop in order for it
to work with stObjectat? does stObjectat not know that collectionOop represents
an OrderedCollection? i just want to be able to get the oops of the elements in
the OrderedCollection, i would know how to extract the string values once i got
them, problem is i cannot get the oops.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i would certainly appreciate any help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>jamie</FONT></DIV></FONT></DIV></BODY></HTML>