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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6e99942bc28c7824 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!22g2000prx.googlegroups.com!not-for-mail From: KK6GM Newsgroups: comp.lang.ada Subject: Re: Is Duration not a discrete type? Date: Sun, 13 Mar 2011 09:59:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <25878df1-a0a1-4890-af10-1c722302f469@d26g2000prn.googlegroups.com> NNTP-Posting-Host: 76.215.210.255 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1300035614 8092 127.0.0.1 (13 Mar 2011 17:00:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 13 Mar 2011 17:00:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 22g2000prx.googlegroups.com; posting-host=76.215.210.255; posting-account=qZVz2QoAAAAN9WxYp-9jYb7jORc4Zqwt User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19113 Date: 2011-03-13T09:59:58-07:00 List-Id: On Mar 12, 11:16=A0pm, Shark8 wrote: > On Mar 12, 9:32=A0pm, KK6GM 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". =A0Can 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.