From 792721280067978623
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,5cc0e5689db82f7b
X-Google-Attributes: gidf78e5,public
X-Google-Thread: f635e,e7776fa3664990ff
X-Google-Attributes: gidf635e,public
From: Pete Becker <petebecker@acm.org>
Subject: Re: Is type_info object static or temporary?
Date: 1998/06/08
Message-ID: <3579F0B6.3B9A00DA@acm.org>#1/1
X-Deja-AN: 360525420
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
Content-Transfer-Encoding: 7bit
References: <356D82DA.36025D97@matfys.lth.se> <6kl3ar$npi$1@shell7.ba.best.com> <35727d32.0@210.134.196.10> <oryavgswwj.fsf@zecarneiro.lsd.dcc.unicamp.br> <3578C2EA.18AA8308@ix.netcom.com>
X-Original-Date: Sat, 06 Jun 1998 21:45:26 -0400
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: MediaOne -=- Northeast Region
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANXtBg+EDnX0m9pzZAQGiyQGAnDZqAd10oJI8YecHufrXisHBRd4sslue 925HdrMn9Yi5KOsWEINMQ9gDreDpKsbU =L9Du
Newsgroups: comp.std.c++,comp.sys.mac.programmer.codewarrior


Paul D. DeRocco wrote:
> 
> Incidentally, I don't really understand why Borland does that,
> since its linker is smart enough to ensure the uniqueness of type_info
> objects.

	It's because of DLLs. The linker doesn't see the contents of a DLL, so
can't merge duplicate objects.
	Note, however, that the first part of the test for equality is checking
whether the two references refer to the same object. It's only if they
don't that the names are compared.
	-- Pete
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



