Yes, I get your point. What is important is that both ends (the encoder and
the decoder) will have to agree on using and expecting the same tags. Using
the order of the member is intuitiv and, I guess, widely used.

Thanks a lot,
Eddie Lascu

-----Original Message-----
From: Conrad Sigona [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005 1:00 PM
To: Eduard Lascu
Cc: [email protected]
Subject: Re: [ASN1] Encoding of a real with default value in BER


> OK, I finally got it. So you don't use the Universal class, but the
Context
> Specific and in that context the tag doesn't give you the type of the
field,
> but other information, such as the order of the data member within the
> sequence (it's the order I was referring to when I spoke about the index).

Dear Mr. Lascu:

I'm not so sure you have it. Do you understand that the tag numbers are
arbitrary, but that we're putting them in order only because it's easier
to do? For instance, I could have had

    Z ::= SEQUENCE {
                     a [8] IMPLICIT INTEGER OPTIONAL,
                     b [1] IMPLICIT INTEGER OPTIONAL,
                     c [42]IMPLICIT INTEGER OPTIONAL
    }

and it would be equally valid.

=====================================================================
Conrad Sigona                    Voice Mail     : 1-732-302-9669 x400
OSS Nokalva                      Fax            : 1-614-388-4156
[EMAIL PROTECTED]                   My direct line : 1-315-845-1773

_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to