From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "Hans Malherbe" Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 15 Mar 2005 04:01:30 -0800 Organization: http://groups.google.com Message-ID: <1110888090.283361.113590@z14g2000cwz.googlegroups.com> References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <42309456$1@news.broadpark.no> <4232ab3a$0$26547$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Host: 196.8.104.31 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1110888094 8207 127.0.0.1 (15 Mar 2005 12:01:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 15 Mar 2005 12:01:34 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=196.8.104.31; posting-account=vaFgcA0AAADo7zN227lGnIpnwjwpYkPg Xref: g2news1.google.com comp.lang.ada:9434 comp.lang.c++:45771 comp.realtime:1511 comp.software-eng:5084 Date: 2005-03-15T04:01:30-08:00 List-Id: Dr. Adrian Wrigley wrote: >That's the point... there aren't any public accessor >functions It's a good point. If you design a library you not only have to decide up front whether you want to let users put your class in ordered containers but whether you want to allow containers at all (Generic algorithms freely make copies of elements and assume value semantics). I have to ask myself though: If I am denied access to information that lets me implement a < operator, am I supposed to be able to sort it? Groete Hans