This is the mail archive of the sourcenav@sources.redhat.com mailing list for the Source Navigator.


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

RE: How to find cross reference for local variables.


> -----Original Message-----
> From: Umair Rasool [mailto:umairr@ifi.uio.no]
> Sent: Wednesday, May 09, 2001 12:20 PM
> To: sourcenav@sources.redhat.com
> Subject: How to find cross reference for local variables.
> 
> 
> Dear Sir,
> 
> My question is regarding finding references to a class.
> Please consider the following example
> 
> public class Database{
> // class body
> public void writeToDatabase(){
>  // method body
> }
> }
> 
> 
> public class AnotherClass{
> Database db = new Database;

Which C++ compiler were you using? I didn't kown it was valid C++ to
initialize class members in the class definintion; they are deemed to be
initialized in the various constructors IIRC :-)

This is a feature I would have loved, as it would have allowed to simply
avoid *any* uininitialized member, but I'm afraid it's not standard C++
(PLEASE if I'm wrong can anybody point me on th erelevant section of the
standard?)

If I'm true, then there is no sense in SN understanding an invalid
declaration as having a valid semantics :-)

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


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