public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Umair Rasool' <umairr@ifi.uio.no>, sourcenav@sources.redhat.com
Subject: RE: How to find cross reference for local variables.
Date: Wed, 09 May 2001 05:40:00 -0000	[thread overview]
Message-ID: <17B78BDF120BD411B70100500422FC6309E280@IIS000> (raw)

> -----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
-------------------------------------------- 

             reply	other threads:[~2001-05-09  5:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-09  5:40 Bernard Dautrevaux [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-05-09 10:07 Bernard Dautrevaux
2001-05-09  3:09 Umair Rasool

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17B78BDF120BD411B70100500422FC6309E280@IIS000 \
    --to=dautrevaux@microprocess.com \
    --cc=sourcenav@sources.redhat.com \
    --cc=umairr@ifi.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).