This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++ "with" keyword


On Saturday 04 January 2003 17:35, Robert Dewar wrote:
> > Any language construct that fails in this regard (like with) is very bad 
> > - period.
> 
> But look carefully at what you are saying. We are talking about a structure
> or class whose members are visible to the client of the library. The change
> we are talking about is adding a new member to the structure. You cannot
> possibly think that such a change can be done in a guaranteed 100%
> upwards compatible manner. That's absurd.
> 
> (for example, at the very least the size of an instance will change).
> 
> Furthermore, the situations under which adding this member will cause
> specifically a difficulty with WITH are very marginal. It is indeed
> far more likely that the addition of a member will cause other compatibility
> differences.

    Why not just make it possible to specify exactly what identifiers you want to
import from the class of the variable (ala Perl's use mechanism)?

Lynn


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]