On Tue, 10 Mar 1998, Grassel Guido NRC/Hki wrote:
>
> I would appreciate if you could have a look at the following test case. It
> raises a question on how to interprete the value of ObjectRefVaribale
> objects and especially how to compare object references:
>
> [ 2 shared, active variables in an application]
>
>...
> {:Link
> 11
> :InitiallyActive true
> :Shared false
> :EventSource 1
> :EventType TestEvent
> :EventData True
> :LinkEffect
> (
> // ...
> )
> }
>...
> Question:
> Does Link 11 or Link 12 fire, i.e. what is the result of the TestVaribale
> action in the LinbkEffect of Link 10?
No, this link doesn't fire because the Eventsource must be the fully qualified
object reference (i.e. ("startup" 1)). But then, if you specify the full
object identifier, I would say yes, it would fire for link 12, but not for
Link 11, because the values are not equal (don't forget that the variables are
in the scope of the application!).
> I think the question comes down to asking, is it the scope in which the
> TestVaribale action gets executed, or the scope of the ObjectRefVaribale
> object which determins how the value of object 1 is interpreted, hence what
> does the object reference :ObjectRef 10 mean, ("orefvar0/startup" 100) or
> ("orefvar0/scene" 100)?
IMHO the important part is the scope of the object. So, the for ":ObjectRef 100"
the fully qualified ObjRef is ("orefvar0/startup" 100).
> I think this question is neither clarified in chapter 51 nor in chapter 21.
I think it is.
Andreas
-- o _ Andreas Kraft (\_|_) GMD FOKUS, kraft@fokus.gmd.de, +49 30 3463-7232 T> ] [ The sky is the limit