From -8279080829377409137
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f635e,e7776fa3664990ff
X-Google-Attributes: gidf635e,public
X-Google-Thread: f78e5,5cc0e5689db82f7b
X-Google-Attributes: gidf78e5,public
From: Pete Becker <petebecker@acm.org>
Subject: Re: Is type_info object static or temporary?
Date: 1998/06/08
Message-ID: <357BCEB1.65AAD11@acm.org>#1/1
X-Deja-AN: 360692431
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
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> <3579F0B6.3B9A00DA@acm.org>
Mime-Version: 1.0
Originator: clamage@taumet
X-NNTP-Posting-Host: petebecker.ne.mediaone.net
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
Organization: MediaOne -=- Northeast Region
Newsgroups: comp.std.c++,comp.sys.mac.programmer.codewarrior


Pete Becker wrote:
> 
> 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.

On re-reading, this needs a bit of clarification:

When linking an executable, the linker doesn't see the contents of the
DLLs that the executable uses, so it can't merge objects that are
duplicated in different DLLs.
	-- 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              ]




