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

From: Ishita Ghosh <ighosh_at_.....>
Date: Tue Dec 30 2008 - 01:24:50 PST
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.



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

This archive was generated by hypermail 2.1.8 : Tue Dec 30 2008 - 01:40:54 PST