From -5837447787993915868 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,2340bb60e0f0f248 X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2002-02-15 09:26:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: Gabriel Dos Reis Newsgroups: comp.std.c++ Subject: Re: proposal for resolution of "valarray operator[] const returning value" (closed isuue 77) Date: Fri, 15 Feb 2002 17:25:29 GMT Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France) Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: References: <3C6BEA03.8D202949@acm.org> <3C6C37F6.CA4C1ED2@acm.org> X-Trace: mail2news.demon.co.uk 1013793934 mail2news:19987 mail2news mail2news.demon.co.uk X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII NNTP-Posting-Date: Fri, 15 Feb 2002 09:48:12 +0000 (UTC) X-Newsreader: Gnus v5.6.45/Emacs 19.34 Lines: 34 Xref: archiver1.google.com comp.std.c++:9667 Pete Becker writes: | Gabriel Dos Reis wrote: | > | > Pete Becker writes: | > | > | Markus Werle wrote: | > | > | > | > I for myself can think of a lot of cases in which I wished | > | > to have all the functionality of valarray, but a return type of | > | > const reference, (e.g. valarray > for | > | > compressed matrices) | > | | > | valarray was designed to be instantiated with numeric types, not | > | composite types. | > | > That doesn't invalide the real problems posed by making that operator | > returning a const. | > | | Huh? How does returning a const reference make it reasonable to compute | the cosine of a valarray >? The two issue are orthogonal, aren't they? -- Gabriel Dos Reis, dosreis@cmla.ens-cachan.fr --- [ 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://www.research.att.com/~austern/csc/faq.html ]