Gordon Vreugdenhil wrote: > P1800-2005, 6.3.5 lists the following: > > A static constant declared with the const keyword can be set to an > expression of literals, parameters, local parameters, genvars, > enumerated names, a constant function of these, or other constants. > Hierarchical names are allowed because constants declared with the > const keyword are calculated after elaboration. > > By this definition, your example is not legal since "constant function" > explicitly excludes heirarchical references. The "heirarchical > names" would, I think, only apply to non-function names. Oops - sorry - "other constants" are listed so the following sentence is wrong. I should proof read before sending.... > Strictly > speaking, a constant couldn't even be defined in terms of another > static constant since that isn't listed. Gord -- -------------------------------------------------------------------- Gordon Vreugdenhil 503-685-0808 Model Technology (Mentor Graphics) gordonv@model.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Mar 14 06:53:44 2007
This archive was generated by hypermail 2.1.8 : Wed Mar 14 2007 - 06:53:49 PDT