Re: [sv-bc] Query regarding constant class property

From: Ishita Ghosh <ighosh_at_.....>
Date: Tue Dec 30 2008 - 02:06:36 PST
Is the use of enum element legal in a static method of a class?

Rgards,
Ishita

Bresticker, Shalom wrote:

>What is the problem?
>
>Shalom
>
>  
>
>>-----Original Message-----
>>From: owner-sv-bc@server.eda.org
>>[mailto:owner-sv-bc@server.eda.org] On Behalf Of Ishita Ghosh
>>Sent: Tuesday, December 30, 2008 11:25 AM
>>To: sv-bc@server.eda.org
>>Subject: RE: [sv-bc] Query regarding constant class property
>>
>>Hi,
>>
>>    Please suggest on the behaviour of the following testcase :
>>
>>module top;
>>
>>    class C;
>>        typedef enum {jan, feb, mar} month;
>>        static int y;
>>        static function void f();
>>            y =jan;      // legal or illegal ??
>>        endfunction
>>    endclass
>>
>>    C c = new;
>>endmodule
>>
>>    The standard simulators are generating no error message.
>>
>>Thanks and Regards,
>>Ishita.
>>    
>>
>---------------------------------------------------------------------
>Intel Israel (74) Limited
>
>This e-mail and any attachments may contain confidential material for
>the sole use of the intended recipient(s). Any review or distribution
>by others is strictly prohibited. If you are not the intended
>recipient, please contact the sender and delete all copies.
>
>
>
>
>
>  
>




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Dec 30 02:16:38 2008

This archive was generated by hypermail 2.1.8 : Tue Dec 30 2008 - 02:16:50 PST