typedef enum {\reg [2]} regular;
module m();
regular \enum ;
always \enum = reg0;
endmodule
Yes, of course it should be fine.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.
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 archive was generated by hypermail 2.1.8 : Mon Mar 22 2010 - 14:59:53 PDT