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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,36208f5925ed5269 X-Google-Attributes: gid103376,public From: dvdeug@my-dejanews.com Subject: Re: non-consecutive ranges Date: 1999/05/01 Message-ID: <7gfjfc$alt$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 472946134 References: <7gct90$7hr$1@nnrp1.dejanews.com> <7gesqf$pfc$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x16.dejanews.com:80 (Squid/1.1.22) for client 139.78.81.187 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sat May 01 19:08:28 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.51 [en] (Win98; I) Date: 1999-05-01T00:00:00+00:00 List-Id: In article <7gesqf$pfc$1@nnrp1.dejanews.com>, Robert Dewar wrote: > That's actually quite a nice extension, which can be done as an > attribute (and therefore is an "allowed" extension). [...] > Then Domain_Check would be called whenever a value of type Odd_Integer > was modified. Another formulation would be > > function Check (X : Odd_Integer) return Odd_Integer; > > which would have the opportunity of modifying the assigned value before > the assignment. > > Thoughts? > > Useful feature? > Silly bell and whistle? It's interesting. I think the second one is more useful, and if it existed, I would probably use it at one point. But it is redundant with Ada's typing system, and non-portable, so I'd head towards the bell and whistle side. -- David Starner - dstarner98@aasaa.ofe.org -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own