Re: [sv-bc] 10.4: nesting priority if

From: Steven Sharp <sharp_at_.....>
Date: Thu Jan 12 2006 - 17:15:52 PST
>From: "Bresticker, Shalom" <shalom.bresticker@intel.com>

>"The unique and priority keywords apply to the entire series of if...else...if 
conditions. In the preceding
>examples, it would have been illegal to insert either keyword after any of the 
occurrences of else. To
>nest another if statement within such a series of conditions, a begin...end 
block should be used."
>
>Is this strictly true?
>
>The syntax alone would not seem to forbid it:

True.  But there are plenty of cases that the BNF syntax allows that are
forbidden by extra semantic restrictions in the text.  Since the text
says that the keywords are illegal in these places, they are illegal there.

Whether you think this was a good idea or not, that is what the LRM says.
Note that it allows the case you were asking about, if you use a begin...end
to break up the series of if...else...if and start a new one.

Steven Sharp
sharp@cadence.com
Received on Thu Jan 12 17:16:02 2006

This archive was generated by hypermail 2.1.8 : Thu Jan 12 2006 - 17:16:44 PST