swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copy an object ....


From: xueyue
Subject: copy an object ....
Date: Sun, 11 Oct 1998 14:29:44 +0000

I met a problem which might be from my misunderstanding the fundamental design of swarm:
suppose I had a list of objects:
list = [ob1, ob2, .... obn];
(I implemented a List class and its methods which are
different from the one provided by swarm.)
now, in my program:
when I call:
[[list getMember] aMethod];
then it works OK, here aMethod is a method for the
respective object.
However, if I use the following procedure:
id ob;
ob = [list getMember];
[ob aMethod];
it will not work anymore. I can not figure out why?
 
-- 
Dr Xueyue Huang
Center for Transport Studies
Imperial College 
London SW7 2BU

(+44) 171 594 6037
 

Attachment: vcard.vcf
Description: Card for Xueyue Huang


reply via email to

[Prev in Thread] Current Thread [Next in Thread]