Re: CastToContentRef

David White (david.white@rd.bbc.co.uk)
Wed, 25 Nov 1998 16:25:29 +0000

Andreas Kraft wrote:
>
> Dear colleagues,
>
> I have a question concerning the DAVIC/UK ResidentProgram
> "CastToContentRef":

I think you mean CastToObjectRef ;->
>
> The program has two input parameter (OctetString (S) and Integer (I)),
> and an output parameter (ObjectReference (R)). The normal behavior is
> easy: S + I -> R .
> But, what happens if (S) is empty? One can argue that the empty string
> is replaced by the current scope. But what is the scope? The scope of
> the resulting ObjectReference, the scope of the ResidentProgram, or the
> scope of the Call/Fork action?
> Or is it actually forbidden to pass an empty string?

I suppose that if you were to pass an empty string into the program and
then attempted to transition to the result it should be the same as
doing:
TransitionTo(("" 0)).

This is legal MHEG and would succeed in a profile that has some
understanding of "", however this would definately fail in the UK
profile because the mapping to the object carousel would fail, the same
as entering any other incorect group identifier.
>
> Is there a clarification or a Provisions of Use for the DAVIC/UK programs
> available?
>
> Thanks in advance,
>
> Andreas
>
> --
> o _ Andreas Kraft
> (\_|_) GMD FOKUS, kraft@fokus.gmd.de, +49 30 3463-7232
> T> ] [ The sky is the limit

-- 
=======================================================
David White, R&D Engineer, BBC Research & Development.
mailto:davidw@rd.bbc.co.uk http://www.bbc.co.uk/rd/
tel:+44 (0)1737 836596