Bancroft Scott wrote:
On Tue, 22 Jul 2003, Murali wrote:


Hi,

Attached is the asn specs, which gives the error :
line 22 (InfObj4): A0120E: Parsing error: expecting NULL but found ','.
&result-if-error &ResultType DEFAULT NULL,  --variable type value field

But when one more NULL is added as it is says in the error message, it
compiles successfully.
(line 22 is changed to &result-if-error &ResultType DEFAULT NULL NULL,)

Is it a compiler bug or the usage was wrong?


The variable type value field defines an open type, and the open type
value notation is "Type : Value".  As such, the correct syntax is
"&result-if-error &ResultType DEFAULT NULL : NULL".  X.681 will be
changed to make it clearer that the presence of "DEFAULT" does not
affect the value notation.

IMHO X.681 makes it clear that the default value for the variable-type value field is of the default type applied to the corresponding type field. As a consequence, I see no need for the ":" notation in such a context.
--
Olivier DUBUISSON
france telecom R&D


DTL/TAL - 22307 Lannion Cedex - France
t: +33 2 96 05 38 50 - f: +33 2 96 05 39 45 - http://asn1.elibel.tm.fr/



Reply via email to