Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!eru!luth!sunic!mcsun!ukc!dcl-cs!aber-cs!pcg From: pcg@aber-cs.UUCP (Piercarlo Grandi) Newsgroups: comp.lang.c++ Subject: Re: C++ 2.0 Question -- Whats wrong with this code ?? Summary: Clarification: you can do without 'this' entirely... Message-ID: <1153@aber-cs.UUCP> Date: 20 Oct 89 12:30:59 GMT Reply-To: pcg@cs.aber.ac.uk (Piercarlo Grandi) Organization: Dept of CS, UCW Aberystwyth (Disclaimer: my statements are purely personal) Lines: 21 In article <1152@aber-cs.UUCP> I have just written: I have been thinking also that if 'this' were made a reference, then it would be possible to dispense with the concept of member procedure entirely; any 'friend' of a class with a first parameter of type reference to that class could be invoked indifferently as a_friend(obj,arg1,arg2) or obj.a_friend(arg1,arg) I forgot to observe that obviously this would eliminate not just the need for the concept of member procedure, but also the idea of having 'this' at all as a distinguished entity, which is even better, given its somewhat peculiar nature. -- Piercarlo "Peter" Grandi | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcvax!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk