comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: GNAT and Dimension Checking
Date: Mon, 2 Jul 2012 14:51:32 -0700 (PDT)
Date: 2012-07-02T14:51:32-07:00	[thread overview]
Message-ID: <e32c3d74-f03d-477a-89c7-0573eb6daac8@googlegroups.com> (raw)
In-Reply-To: <1faa831a-4f86-4448-896f-5f8a399e52ee@googlegroups.com>

On Monday, July 2, 2012 1:58:41 PM UTC-7, Adam Beneschan wrote:
> On Monday, July 2, 2012 1:42:04 PM UTC-7, Anh Vo wrote:
> > On Sunday, July 1, 2012 3:44:19 AM UTC-7, (unknown) wrote:
> 
> > 
> >   type Mks_Type is new Long_Long_Float
> >      with
> >       Dimension_System => (
> >         (Unit_Name => Meter,    Unit_Symbol => 'm',   Dim_Symbol => 'L'),
> >         (Unit_Name => Kilogram, Unit_Symbol => "kg",  Dim_Symbol => 'M'),
> >         (Unit_Name => Second,   Unit_Symbol => 's',   Dim_Symbol => 'T'),
> >         (Unit_Name => Ampere,   Unit_Symbol => 'A',   Dim_Symbol => 'I'),
> >         (Unit_Name => Kelvin,   Unit_Symbol => 'K',   Dim_Symbol => "Theta"),
> >         (Unit_Name => Mole,     Unit_Symbol => "mol", Dim_Symbol => 'N'),
> >         (Unit_Name => Candela,  Unit_Symbol => "cd",  Dim_Symbol => 'J'));
> > 
> >  Can anyone point me to the ARM 2012 paragraph(s) which supports this syntax in general. Thanks.
> 
> 13.1.1(38): "Implementations may support implementation-defined aspects. The aspect_specification for an implementation-defined aspect may use an implementation-defined syntax for the aspect_definition, and may follow implementation-defined legality and semantics rules."
> 
>                           -- Adam

Ah I got it now. Thanks very much Adam.

Anh Vo



  reply	other threads:[~2012-07-02 21:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-01  5:53 GNAT and Dimension Checking AdaMagica
2012-07-01  6:25 ` Nasser M. Abbasi
2012-07-01 10:44   ` yogeshwarsing
2012-07-02 20:42     ` Anh Vo
2012-07-02 20:58       ` Adam Beneschan
2012-07-02 21:51         ` Anh Vo [this message]
2012-07-01 15:18 ` AdaMagica
2012-07-01 15:47   ` yogeshwarsing
2012-07-06 10:47 ` AdaMagica
2012-07-08  1:50   ` Robert A Duff
2012-07-08 10:33 ` AdaMagica
2012-07-08 11:37   ` Dmitry A. Kazakov
2012-07-08 14:13     ` AdaMagica
2012-07-08 18:47   ` Jacob Sparre Andersen
2012-07-09 11:06     ` AdaMagica
2012-07-09  8:20   ` Martin
2012-07-09 11:19     ` AdaMagica
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox