From -5153833538433494442
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7b33df5790e7ad92
X-Google-Attributes: gidf78e5,public
From: "Daniel Parker" <danielp@no_spam.com>
Subject: Re: complex design flaw (#1)
Date: 1999/03/18
Message-ID: <01be70e9$3a08d1e0$7d9cd4c7@danielp.interlog.com>#1/1
X-Deja-AN: 456220500
X-NNTP-Posting-Host: danielp.interlog.com
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <x88pv6fok3r.fsf@nbeckerpc.hns.com> <xaj3e3be4pu.fsf@korrigan.inria.fr> <01be6e30$aeae59e0$7d9cd4c7@danielp.interlog.com> <MPG.115705178a5dc0198994f@news.rmi.net> <xajn21es2aj.fsf@korrigan.inria.fr> <MPG.11584ac6ea197fae989959@news.rmi.net>
X-UID: 0000000001
X-Status: $$$T
NNTP-Posting-Time: 18 Mar 1999 02:41:22 GMT
Organization: Interlog Internet Services
Newsgroups: comp.std.c++
Originator: clamage@taumet



Jerry Coffin <jcoffin@taeus.com> wrote in article
<MPG.11584ac6ea197fae989959@news.rmi.net>...
> In article <xajn21es2aj.fsf@korrigan.inria.fr>, 
> gdosreis@korrigan.inria.fr says...
> 
> 
> OTOH, even within this limited domain, you can run into problems in a 
> hurry.  For example, switching something from double to long double is 
> a fairly innocuous change in a portable program -- about the worst it 
> should ever do is slow things down considerably.  OTOH, if you're 
> relying on the constraints he gave, your program could suddenly quit 
> working instead.
> ---
I don't get it.  How

SquareMatrix<double> A(1000);

gets ininitialized says nothing whatsoever about how

SquareMatrix<long double> B(1000);

gets initialized, or

SquareMatrix<std::wstring> C(1000);

for that matter.  Any implementation I could imagine would provide a
general case that would work for everything and only optimize for selected
cases.

Regards,
Daniel Parker danielp@no_spam.anabasis.com



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




