[sv-ec] Re: a few resolution examples

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Mon Nov 05 2007 - 12:31:18 PST
Gordon Vreugdenhil wrote:
> For purposes of in-progress meetng:
> 
>   class C #(int p = 1);
>      static int x;
>      typedef int T;

        extern function T getX();
        extern function void setX(T newx);

>   endclass


function C::T C::getX();
    return x;
endfunction


function void C::setX(T newx);
    x = newx;
endfunction

The following is also Ok:


function void C::setX(C::T newx);
    x = newx;
endfunction



> 
>   C::T y;   // illegal
>   C#()::T z;  // ok
>   initial C::x = 1;   // illegal
>   initial C#()::x = 1;   // Ok
> 

-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Nov 5 12:32:10 2007

This archive was generated by hypermail 2.1.8 : Mon Nov 05 2007 - 12:32:21 PST