From: mockturtle <framefritti@gmail.com>
Subject: Re: Question about asynchronous calls
Date: Thu, 7 Nov 2013 10:59:52 -0800 (PST)
Date: 2013-11-07T10:59:52-08:00 [thread overview]
Message-ID: <ba0f1167-79fa-4e3e-9191-e08237ccfccc@googlegroups.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1311070825170.26025@debian>
On Thursday, November 7, 2013 8:46:54 AM UTC+1, Stefan...@uni-weimar.de wrote:
> On Wed, 6 Nov 2013, mockturtle wrote:
>
>
>
> > type Matlab_Name is new
> > String
> > with Dynamic_Predicate =>
> > (for all I in Matlab_Name'Range =>
> > Is_Alphanumeric (Matlab_Name (I)) or Matlab_Name (I) = '_')
> > and
> > Is_Letter (Matlab_Name (Matlab_Name'First));
>
>
>
> I suggest to write the following.
>
> with Dynamic_Predicate =>
> ( Natlab_Name'Length > 0
> and then
> Is_Letter (Matlab_Name (Matlab_Name'First)
> and then
> for all I in Matlab_Name'First+1 .. Matlab'Last =>
> Is_Alphanumeric (Matlab_Name (I)) or Matlab_Name (I) = '_')
> );
>
> (Warning: not syntax checked!)
>
> The "Natlab_Name'Length > 0 and then" part is important -- your code would
> raise Constraint_Error if the Matlab_Name is the empty string.
Ops! Touche! You are right... :-)
>
next prev parent reply other threads:[~2013-11-07 18:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-06 11:05 Question about asynchronous calls mockturtle
2013-11-06 18:49 ` J-P. Rosen
2013-11-06 20:40 ` mockturtle
2013-11-06 19:54 ` Shark8
2013-11-06 20:49 ` mockturtle
2013-11-07 7:46 ` Stefan.Lucks
2013-11-07 10:23 ` Predicates (was: Question about asynchronous calls) Georg Bauhaus
2013-11-07 18:59 ` mockturtle [this message]
2013-11-07 8:18 ` Question about asynchronous calls Jacob Sparre Andersen
2013-11-07 19:00 ` mockturtle
2013-11-06 20:49 ` Jeffrey Carter
2013-11-06 20:58 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox