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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.72.66 with SMTP id s42mr6319250yhd.9.1413089584453; Sat, 11 Oct 2014 21:53:04 -0700 (PDT) X-Received: by 10.50.36.1 with SMTP id m1mr181122igj.8.1413089584310; Sat, 11 Oct 2014 21:53:04 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!dc16no2226738qab.1!news-out.google.com!rp1ni27119igb.0!nntp.google.com!uq10no8998335igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 Oct 2014 21:53:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.6.21.101; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 24.6.21.101 References: <8d412a6d-5589-4601-a7f8-5bb6d1b8850f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: type conversion From: Anh Vo Injection-Date: Sun, 12 Oct 2014 04:53:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:189675 Date: 2014-10-11T21:53:03-07:00 List-Id: On Saturday, October 11, 2014 7:32:07 PM UTC-7, Shark8 wrote: > Well, let's make some subtypes! > > Subtype Integer_String is > with Dynamic_Predicate => Integer'Value( Integer_String ) in Integer > or else raise Constraint_Error; Look like the parent type is missing. You probably meant this. Subtype Integer_String is Integer with Dynamic_Predicate => Integer'Value( Integer_String ) in Integer or else raise Constraint_Error; Anh Vo