comp.lang.ada
 help / color / mirror / Atom feed
From: Jere <jhb.chat@gmail.com>
Subject: Re: type definition for an integer with discrete range
Date: Sat, 30 Mar 2019 15:13:12 -0700 (PDT)
Date: 2019-03-30T15:13:12-07:00	[thread overview]
Message-ID: <b4209154-6daf-47c8-8150-d10878f07f05@googlegroups.com> (raw)
In-Reply-To: <c3f1bebd-98b7-45fb-b778-8542130bcdf5@googlegroups.com>

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);


  reply	other threads:[~2019-03-30 22:13 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 [this message]
2019-04-01  6:59             ` mario.blunk.gplus
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