From: Matt Maidment (mmaidmen@ichips.intel.com)
Date: Thu Aug 01 2002 - 13:52:23 PDT
Precedence: bulk
>Number: 89
>Category: errata
>Originator: "Matt Maidment" <mmaidmen@ichips.intel.com>
>Description:
Hello.
I've been studying attributes in the 1364-2001 spec and believe
there's a problem with the BNF.
The 1364-2001 BNF indicates that there can be multiple (0 or
more) attribute instances per language element. Using the BNF
for module declarations as an example:
module_declaration ::=
{attribute_instance} module_keyword module_identifier....
we see that multiple attribute instances are allowed per module
definition. An attribute instance is defined as:
attribute_instance ::=(*attr_spec {,attr_spec }*)
The combination of the 2 BNF entries implies that there
are two ways to specify more than one attribute, either
in multiple attribute instances:
(*attr1*)(*attr2*) module mymodule(...
or as multiple specifications within one attribute instance:
(*attr1,attr2*) module mymodule (...
Why is it that multiple attribute specifications can be spec'ed in
a single attribute instance or spec'ed in multiple attribute instances?
Shouldn't one attribute instance be sufficient? It seems that the
allowance of multiple attribute instances is an errata in the BNF.
It's curious that no example in the spec makes use of multiple
attribute instances. Perhaps this is a hint that multiple instances
were never intended?
Thanks,
Matt
-- Matt Maidment mmaidmen@ichips.intel.com (503)712-2915 Intel Corporation MS JF4-409 2111 NE 25th Ave. Hillsboro, Oregon 97124
This archive was generated by hypermail 2.1.4
: Thu Oct 10 2002 - 09:24:27 PDT
and
sponsored by Boyd Technology, Inc.