🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1635

Re: STL operators != > <= >=

#1635
From: mfinney
Date: Mon, 07 Aug 1995 07:50
21 lines
1620 bytes
In <4023ic$sss@lyman.pppl.gov>, Haim Kreitman <haim_kreitman@mail.stil.scitex.com> writes:
>Another realistic and usefull example of partial order is
>//  (where @ means "non-comparable") could be helpfull)

Interesting example -- and one I had not (yet) considered.  But, of course, it is
worse than the templated operators are useless.  They actively conflict with
the correct template definitions.

BTW, instead of using x @ y to mean non-comparable, I use x  >< y where the
>< is intended to overlap.  It has the advantage of using the same characters
as <> so no new symbols are required (I also want to reserve @ for some other
things, but that is not really relevant here).

I haven't heard from Koenig or anyone from the the standard on this yet.  I
hope it isn't too late to get a correction into the standard.

It is possible that namespaces will make things a bit better, but it would be
pretty awkward to have to always use x.std::operator<=(y) instead of x <= y
so that isn't really a viable solution.

Michael Lee Finney
Technical Details
Message-ID: <404gjm$bhu@mujibur.inmind.com>
Path: arc1-ca.pugleaf.net!mujibur.inmind.com!usenet
References: <3vpmv5$4t7@mujibur.inmind.com> <3vpnrq$50c@mujibur.inmind.com> <3vq030$8v1@lyman.pppl.gov> <3vs00b$4bf@mujibur.inmind.com> <3vtcha$cbv@lyman.pppl.gov> <3vutg6$713@mujibur.inmind.com> <4023ic$sss@lyman.pppl.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mujibur.inmind.com!usenet
From: mfinney@inmind.com
Newsgroups: comp.std.c++
Subject: Re: STL operators != > <= >=
Date: 7 Aug 1995 07:50:14 GMT
Organization: In Mind, Inc.
Message-ID: <404gjm$bhu@mujibur.inmind.com>
References: <3vpmv5$4t7@mujibur.inmind.com> <3vpnrq$50c@mujibur.inmind.com> <3vq030$8v1@lyman.pppl.gov> <3vs00b$4bf@mujibur.inmind.com> <3vtcha$cbv@lyman.pppl.gov> <3vutg6$713@mujibur.inmind.com> <4023ic$sss@lyman.pppl.gov>
Reply-To: mfinney@inmind.com
NNTP-Posting-Host: finneyman.inmind.com
X-Newsreader: IBM NewsReader/2 v1.2