Re: [sv-bc] enum range with keyword

From: Greg Jaxon <Greg.Jaxon@synopsys.com>
Date: Mon Mar 22 2010 - 14:59:29 PDT
Yes, I was proposing that the prefix text of these "enumerals" should be able to duplicate any keyword.
But it's really a pointless sort of enhancement, done because it's possible to do, rather than
because it has any return on the investment involved.  So I'm perfectly fine with leaving this odd feature
slightly handicapped.  If you need those names made in this fashion, please use:

typedef enum {\reg [2]} regular;
module m();
  regular \enum ;
  always \enum = reg0;
endmodule

Greg

Steven Sharp wrote:
Looking at Greg's reply again, I have to correct part of my response to
him.

Greg is not concerned with forming identifiers that match keywords, and
thinks that should be legal.  I agree.
  
Yes, of course it should be fine. 
But he does seem to be suggesting that an exception should be made to
allow a keyword as the enum_identifier that is the basis for forming
these identifiers.  And there I disagree.  Keywords are reserved for
reasons that apply here as much as anywhere else.

Steven Sharp
sharp@cadence.com

  

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Received on Mon Mar 22 14:59:48 2010

This archive was generated by hypermail 2.1.8 : Mon Mar 22 2010 - 14:59:53 PDT