Re: [sv-bc] Quick scope operator question

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Tue Nov 21 2006 - 14:52:23 PST
Mark Hartoog wrote:

>>   package p;
>>     typedef p::T2 T;
>>     typedef T T2;
>>   endpackage
> 
> 
> I think this example is illegal. When processing "typedef p::T2 T;"
> there is no type 'T2' yet in package 'p', so this should be an
> error.

So does that mean that you think that:

     package p;
         function int f(int x);
            return p::f2(x);
         endfunction
         function f2(int x);
            return 1;
         endfunction
     endpackage

should be an error?

I don't.

Gord.


-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com
Received on Tue Nov 21 14:52:26 2006

This archive was generated by hypermail 2.1.8 : Tue Nov 21 2006 - 14:52:36 PST