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=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8276b2994037cd71 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: disjoint ranges ? Date: 2000/10/18 Message-ID: <8sksl4$b6o$1@nnrp1.deja.com>#1/1 X-Deja-AN: 683003595 References: <39E612C9.9BF98CD3@laas.fr> <8s59nu$ej4$1@news.huji.ac.il> <39E658A4.525AE881@acm.org> <39E6E890.3B13E7A9@laas.fr> <8s8iuk$q66$1@nnrp1.deja.com> <39EBB984.F2F8905F@ix.netcom.com> X-Http-Proxy: 1.0 x52.deja.com:80 (Squid/1.1.22) for client 205.232.38.240 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Oct 18 19:11:40 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-10-18T00:00:00+00:00 List-Id: In article <39EBB984.F2F8905F@ix.netcom.com>, Lao Xiao Hai wrote: > So, making a feature more powerful might be something such as being > able to overload the "in" membership test. For some reason, this > operator is not really a first class operator in Ada. For very good reasons! The right operand of IN is not a value, but a range. If you want to start making discrete ranges first class values, you have suddenly taken (one of many) avaliable trains to the land-of-increased-complexity. It is easy to throw out an idea like this casually, but if you even start to try to think what all the effects would be on the existing semantics, you will find that it is far harder than you think. Language design is like skiing, it looks much easier than it is, and it is only when you actually start doing it, that you find out it is more complex :-) Sent via Deja.com http://www.deja.com/ Before you buy.