Draft 4 BNF and constant_primary

From: James A. Markevitch (jam@magic.com)
Date: Sun Jan 23 2000 - 13:36:09 PST


Section A.8.4

In both the 1995 standard and Draft 4, constant expressions are not allowed
to arbitrarily use parentheses. Thus, the following would be an illegal
construct:

        udpname #((2+4)) instname(a, b);

Compare the definitions of constant_primary and primary.

Is this just a long-standing oversight in the BNF? Should constant_primary
include "( constant_mintypmax_expression )" or "( constant_expression )"
or something? Similarly, genvar_primary does not support parenthesized
sub-expressions.

James Markevitch



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:54:11 PDT and
sponsored by Boyd Technology, Inc.