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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: type conversion Date: Sat, 11 Oct 2014 23:38:49 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <8d412a6d-5589-4601-a7f8-5bb6d1b8850f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 12 Oct 2014 06:38:49 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="206f88a41f45fc94d25d07d064d738e2"; logging-data="8294"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pkOjguJFs8XMtJtNg7Cu8HhPSISz2UVU=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: Cancel-Lock: sha1:Fo2LBBxmXK1HNkmOGSh5g+fkmuE= Xref: news.eternal-september.org comp.lang.ada:22374 Date: 2014-10-11T23:38:49-07:00 List-Id: On 10/11/2014 09:57 PM, Shark8 wrote: > > Subtype Integer_String is new String > with Dynamic_Predicate => Integer'Value( Integer_String ) in Integer > or else raise Constraint_Error; Still not right. Remove "new". -- Jeff Carter "I fart in your general direction." Monty Python & the Holy Grail 05