Hi again,
the RemoteObject is wrapped in a procedure. Because of this, the
dot-notation to access features does not work from outside of the
object itself.
With respect to attributes, nothing should have changed because you
can't access those from outside the object anyway.
I recommend to use accessor methods. If you don't want to write a
special method for every feature, you may also write a generic
accessor method:
declare
class Test
feat
a
b
meth init(A B)
self.a = A
self.b = B
end
meth get(Feature $)
self.Feature
end
end
T = {New Test init(13 17)}
{Show {T get(a $)}}
{Show {T get(b $)}}
Cheers,
Wolfgang
On 8/13/10, Khadija EL MAHRSI <[email protected]> wrote:
>
> Hello,
> I have another question, in the remote2.oz you sent me can't I add attributes
> and features to the test class in which I put different values through the
> init method and then after using "RemoteObject =
> {CreateRemoteStationaryObject Test init}" check out the values the arrtibutes
> and features contain? (I tried to do so but failed. Maybe I'm doing something
> wrong.)
>
> thanks
>
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users