From: KK6GM <mjsilva@scriptoriumdesigns.com>
Subject: Re: Is Duration not a discrete type?
Date: Sun, 13 Mar 2011 09:59:58 -0700 (PDT)
Date: 2011-03-13T09:59:58-07:00 [thread overview]
Message-ID: <b9408741-8d45-4645-a7b7-dbb3ee62256b@22g2000prx.googlegroups.com> (raw)
In-Reply-To: 25878df1-a0a1-4890-af10-1c722302f469@d26g2000prn.googlegroups.com
On Mar 12, 11:16 pm, Shark8 <onewingedsh...@gmail.com> wrote:
> On Mar 12, 9:32 pm, KK6GM <mjsi...@scriptoriumdesigns.com> wrote:
>
> > I'm trying to create a task type with a Duration discriminant and
> > receive the GNAT error "discriminants must have a discrete or access
> > type". Can somebody help me to understand the problem here?
>
> Duration is a Fixed-point type if I remember correctly.
>
> This page, from the `83 LRM, indicates that to be the case:http://archive.adaic.com/standards/83lrm/html/lrm-09-06.html
Yes, I didn't realize that fixed-point was not a discrete type. No
problem, I can just pass in a discrete value that represents
milliseconds and convert to a duration in the task.
next prev parent reply other threads:[~2011-03-13 16:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-13 4:32 Is Duration not a discrete type? KK6GM
2011-03-13 6:16 ` Shark8
2011-03-13 16:59 ` KK6GM [this message]
2011-03-14 10:55 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox