[squeak-dev] Local variable in plugin

Ang Beepeng beepeng86 at yahoo.com
Mon Nov 3 03:34:18 UTC 2008


How to initialize a local variable in plugin?

Say I want to have smething like this in c.

int myfunction (){
   int* temp;

   for(int i=0; i< 4; i++){
   temp[i] = i;
   }
}

I use 
self var: #temp type: 'int *temp'.  
for 
int* temp

1 to: 3 do:[:i|
   self m: temp r: i c:0 put: i].
for the loop.

Thanks.

-- 
View this message in context: http://www.nabble.com/Local-variable-in-plugin-tp20296824p20296824.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.




More information about the Squeak-dev mailing list