From: mario.blunk.gplus@gmail.com
Subject: Re: type definition for an integer with discrete range
Date: Sun, 31 Mar 2019 23:59:53 -0700 (PDT)
Date: 2019-03-31T23:59:53-07:00 [thread overview]
Message-ID: <5762bd48-9e87-4b77-a517-a4e62dec071b@googlegroups.com> (raw)
In-Reply-To: <b4209154-6daf-47c8-8150-d10878f07f05@googlegroups.com>
On Saturday, March 30, 2019 at 11:13:14 PM UTC+1, Jere wrote:
> On Saturday, March 30, 2019 at 4:44:07 PM UTC-4, mario.b...@gmail.com wrote:
> > Great, that brings me a lot further. I updated the file at
> > https://github.com/Blunk-electronic/ada_training/blob/master/src/type_angle/type_angle.adb
> > Two more questions:
> > 1. How can I catch the exception SYSTEM.ASSERTIONS.ASSERT_FAILURE in the exception handler ? See line 26.
> > 2. How can I print the "gap size" via put ? See line 28.
> >
> > Thanks to all of you out there.
>
> 1. Add a "with" for System.Assertions, uncomment line 26, add your
> handling code.
>
> 2. Declare a constant:
> Angle_Delta : constant := 5;
> Use it in your Dynamic_Predicate and then in your print statement, do
> Integer'Image(Angle_Delta);
Thanks, it is nearly perfect now :-)
The line 24 in the file
https://github.com/Blunk-electronic/ada_training/blob/master/src/type_angle/type_angle.adb
Should produce an error at compile time. Apart from this "nice to have" the program does what I want.
next prev parent reply other threads:[~2019-04-01 6:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-29 16:10 type definition for an integer with discrete range mario.blunk.gplus
2019-03-29 16:34 ` tranngocduong
2019-03-29 16:46 ` mario.blunk.gplus
2019-03-30 4:17 ` tranngocduong
2019-03-30 4:19 ` tranngocduong
2019-03-29 20:24 ` Simon Wright
2019-03-29 20:51 ` mario.blunk.gplus
2019-03-29 21:24 ` Simon Wright
2019-03-30 20:44 ` mario.blunk.gplus
2019-03-30 22:13 ` Jere
2019-04-01 6:59 ` mario.blunk.gplus [this message]
2019-04-01 15:52 ` AdaMagica
2019-04-01 16:27 ` Simon Wright
2019-04-01 16:41 ` AdaMagica
2019-03-29 21:57 ` Dmitry A. Kazakov
2019-03-30 21:45 ` John Perry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox