home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!demon!cix.compulink.co.uk!vadim
- Newsgroups: comp.lang.c++
- From: vadim@cix.compulink.co.uk (Vadim Lebedev)
- Subject: Re: Handling of operator . pro
- Reply-To: vadim@cix.compulink.co.uk
- Date: Fri, 31 Jul 1992 00:11:17 +0000
- Message-ID: <memo.551143@cix.compulink.co.uk>
- Sender: usenet@gate.demon.co.uk
- Lines: 42
-
- In-Reply-To: <BryIM5.KFH@world.std.com> wmm@world.std.com (William M Miller)
-
-
- In article <BryIM5.KFH@world.std.com> wmm@world.std.com (William M Miller)
- writes:
-
- > The issue is one of analogy -- all the currently overloadable
- > operators have a runtime component in the builtin version. Adding
- > runtime behavior to an operator that doesn't have it now would be a
- > completely new thing.
-
- You're not completely right here saying the 'operator . ' has not
- runtime behaviour.
- Consider:
- class Something &k;
-
- k.anything();
-
- In the case of references 'operator .' DEFINITELY HAS runtime behaviour.
- So it is logical to expect the possibility to overload this runtime
- behaviour in order to implement smart references.
-
-
- BTW, I my viewa ll computer languages including C++
- should help us humans to control
- computers, so if there is possibility to enchance C++ in a way that
- help us to acccomplish this task, the possibility should be jumped on.
- What i'm trying to say, is that when there is a language extension proposal
- which is clearly useful to many of programmers such as
- RTTI, extended RTTI, 'operator .', 'operator pow', delegation
- the foolowing reasoning should be adopted IMHO,
- Is there a grand demand for this feature?
- if yes, so is this feature easily implementable?
- if yes, what pourcentage of existing programs would be broken by
- this feauture, if not too much, add the feature to the language.
-
- -----------------------------------------------------------------------
- Vadim Lebedev | Kortex International
- vadim@cix.compulink.co.uk | 139-147 av. Paul-Vaillant Couturier
- | 93126 La Courneuve - CEDEX, France
-
-
-