Path: utzoo!attcan!uunet!mcsun!inria!bull.bull.fr!cediag!JeanYves.Cras From: JeanYves.Cras@cediag.bull.fr (Jean-Yves Cras) Newsgroups: comp.lang.c++ Subject: Re: Assignments to reference variables Message-ID: Date: 19 Sep 90 10:14:17 GMT References: <8445@jarthur.Claremont.EDU> Sender: news@bull.bull.fr Organization: Cediag Bull S.A., Louveciennes, France Lines: 24 In-reply-to: dfoster@jarthur.Claremont.EDU's message of 18 Sep 90 23:35:22 GMT I currently have the same problem as you. However, not for the same purpose. The point is that I want to define a class - say CLASS - and quite a lot of functions that will receive arrays of references to CLASS as argument. So I wish I could write: class CLASS { ... }; void foo(CLASS&* p) { ... } // illegal; wonder why main() { CLASS tab[10]; CLASS& tref[3]; for ( int i = 0; i < 3; i++) tref[i] ??????? tab[i*2]; // re_referencing operator f(tref); } This doesnot work because 1) Cannot declare pointers/references to references; and 2) lack a re_referencing operator. Of course, using pointers fixes the problem but... Anyway, I will certainly not refrain from using your #2 kludge until something cleaner is exhibited !