comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adambeneschan@gmail.com>
Subject: Re: <> syntax in generic formal_package_actual_part
Date: Thu, 8 May 2014 16:20:34 -0700 (PDT)
Date: 2014-05-08T16:20:34-07:00	[thread overview]
Message-ID: <67fca783-9807-4ad2-bb0e-4649e50d6fda@googlegroups.com> (raw)
In-Reply-To: <536c0716$0$6705$9b4e6d93@newsspool2.arcor-online.net>

On Thursday, May 8, 2014 3:37:10 PM UTC-7, Georg Bauhaus wrote:
> Hi,
> 
> is a compiler correct in accepting the syntax of these four lines?
> Specifically, if the "<>" the sole text in parentheses, I'd find
> myself at home. But I'm no longer sure with other associations present.
> Should there be an "others =>" before the box?
> 
> 
> with Ada.Containers.Vectors;
> generic
>     with package G is new Ada.Containers.Vectors (Integer, Positive, <>);
> package Gen_Pak is end Gen_Pak;

This is illegal, but it doesn't have to be "others => <>"; I believe this is legal:

 generic
    with package G is new Ada.Containers.Vectors (Integer, Positive, "=" => <>);
 package Gen_Pak is end Gen_Pak;

                                  -- Adam   

  reply	other threads:[~2014-05-08 23:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-08 22:37 <> syntax in generic formal_package_actual_part Georg Bauhaus
2014-05-08 23:20 ` Adam Beneschan [this message]
2014-05-09 13:05   ` G.B.
replies disabled

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