Re: [sv-bc] Quick scope operator question

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Tue Nov 21 2006 - 14:23:12 PST
Greg Jaxon wrote:

>> Packages must exist in order for the items they define
>> to be recognized by the scopes in which they are imported.
> 
> 
> So in package P, can we refer to P::item ?


My opinion is a qualified "yes".  There are some degenerate
cases that we might want to deal with:

   package p;
     typedef p::T2 T;
     typedef T T2;
   endpackage

This falls into some of my ramblings about "type completeness"
at various points.  Obviously some kind of circular type
error exists, but how do we talk about that?

But for normal situations (such as Francoise's example in
in Mantis 1546) and even forward data references, I don't
see any problems in terms of implementation.

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

This archive was generated by hypermail 2.1.8 : Tue Nov 21 2006 - 14:23:33 PST