On Mon, 17 Sep 2001, Egon Andersen, Talura wrote:
> I've been looking at the following construction.
>
> ---
> alpha INTEGER { a (1) } ::= 3
> beta INTEGER { alpha (7) } ::= alpha
> ---
>
> What is the value of beta? 3 or 7? 'alpha' can be regarded as both a
> DefinedValue and an identifier. Both types are defined with different
> named values and different names for named values. I can't see that
> any rule is violated. Nor any rules saying which of the two values is
> assigned to 'beta' I'm specially looking at X.680 (1997 E) clause
> 18.10 (including NOTE) and X.680 (1997 E)/Amd.2 (1999 E) clause F.4.5
The answer is that beta is 7, same as you would get for
alpha INTEGER { a (1) } ::= 3
Foo ::= INTEGER { alpha (7) }
beta Foo ::= alpha
We will clarify this in ASN.1:2002.
-------------------------------------------------------------------------
Bancroft Scott Toll Free :1-888-OSS-ASN1
OSS Nokalva International:1-732-302-0750
[EMAIL PROTECTED] Tech Support :1-732-302-9669 x-1
1-732-302-9669 x-200 Fax :1-732-302-0023
http://www.oss.com