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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,989d0c2f2f87320d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-09 09:45:50 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newscore.gigabell.net!news-fra.pop.de!newsfeed.easynews.net!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Record type with check? Date: 09 Jan 2001 17:37:02 +0100 Organization: Enyo's not your organization Message-ID: <87r92cof69.fsf@deneb.enyo.de> References: <868zolm9dp.fsf@book.mteege.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: supernews.google.com comp.lang.ada:3823 Date: 2001-01-09T17:37:02+01:00 List-Id: Matthias Teege writes: > ist there any way to build a record type like this: > > type Datum is > record > Var_A : Integer; > Var_B : Integer; > end record; > > which guarantees that Var_B is bigger than Var_A? No, I don't think there is. Of course, you can 'Datum' a private type and use get/set subprograms to access 'Var_A' and 'Var_B', but that's probably not what you are asking for.