Re: [sv-bc] Re: Package export proposal

From: Greg Jaxon <Greg.Jaxon_at_.....>
Date: Fri Sep 15 2006 - 10:35:33 PDT
Gordon Vreugdenhil wrote:
> The problem is that one might want to distinguish:
> 
>   import p1::*;
>   import p2::x;
> 
>   export p2::*;
> 
> If the "export p2::*" has import semantics, then you can
> have collisions with p1 that would otherwise be avoided.
> 
> Yes, you could explicitly export just the names you wanted
> but there have already been complaints about redundancy.

So:
    import p1::*;
    export p2::x;

Nothing is redundant, no confusion arises.
The second line accomplishes both the import and the export.
Received on Fri Sep 15 10:35:40 2006

This archive was generated by hypermail 2.1.8 : Fri Sep 15 2006 - 10:35:53 PDT