Re: Clarification for ObjectReferenceVariabl

Emmanuel BEUQUE (ebeuque@pratique.fr)
Tue, 10 Mar 1998 12:21:48 +0100

À (At) 11:49 +0200 10/03/98, Grassel Guido NRC/Hki écrivait (wrote) :
>Dear Colleagues
>
>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:
>
>{:Application
> ("orefvar0/startup" 0)
> :Items
> (
> {:ObjectRefVar
> 1
> :InitiallyActive true
> :Shared true
> :OrigValue :ObjectRef 100
> }
> {:ObjectRefVar
> 2
> :InitiallyActive true
> :Shared true
> :OrigValue :ObjectRef
>("orefvar0/scene1" 100)

To me, the OrigValue of ObjectRefVar 1 is ("orefvar0/startup" 100). If the
application doesn't contain an item with objectID 100, then the engine
shall not be able to give an OrigValue to var 1, which is a syntax error in
application.

>
>Question:
>Does Link 11 or Link 12 fire, i.e. what is the result of the TestVaribale
>action in the LinbkEffect of Link 10?

To me, link 12 (false) could fire if eventSource was ("orefvar0/startup"
1), not 1 alone and application has an item 100.
But again, the way you wrote your scene, I would say that it is not
syntactically correct if the scene don't have a variable of objectID 1 and
if the scene do, neither link 11 nor link 12 would fire on the testVariable
made in link 10.

>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)?

100 in startup

>I think this question is neither clarified in chapter 51 nor in chapter 21.

No, it is clear in chapter 51. BTW, you cannot reference a variable in a
scene from the application. Within application, you can only reference
scene as external references.

HTH,
Emmanuel

__________________________________________________________________
Emmanuel BEUQUE mailto:ebeuque@pratique.fr
MediaServ tel: +33 (0) 2 99 64 35 64
Multimedia consultant & developer fax: +33 (0) 2 99 64 36 65