comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christoph.grein@eurocopter.com>
Subject: Re: Code Statement
Date: Wed, 19 May 2010 03:20:45 -0700 (PDT)
Date: 2010-05-19T03:20:45-07:00	[thread overview]
Message-ID: <fd64528d-eec1-4a04-96a5-93c08c7e8bc6@f13g2000vbm.googlegroups.com> (raw)
In-Reply-To: ad00ca10-c3a7-47bc-b766-6a9edb542df7@y21g2000vba.googlegroups.com

On 19 Mai, 11:56, sjw <simon.j.wri...@mac.com> wrote:
> On May 19, 7:07 am, Simon Wright <si...@pushface.org> wrote:
>
> > I'm not sure whathttp://www.adaic.com/standards/05rm/html/RM-13-8.html
> > (2) means; does it give you a licence to use any type you lke? seems
> > unlikely.
>
> Sorry, I meant (4): "The qualified_expression is expected to be of any
> type."

This is a Name Resolution Rule used for overload resolution. As far as
overloading is concernded, any type can do.

> Compare with (5): "The qualified_expression shall be of a type
> declared in package System.Machine_Code."

This is a Legality Rule and applied only after overload resolution. So
this is where code becomes illegal when other types are used.



      reply	other threads:[~2010-05-19 10:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-18 13:12 Code Statement johnjohn
2010-05-18 13:22 ` Ludovic Brenta
2010-05-18 13:29 ` AdaMagica
2010-05-18 15:05 ` sjw
2010-05-19  4:37   ` anon
2010-05-19  6:07     ` Simon Wright
2010-05-19  9:56       ` sjw
2010-05-19 10:20         ` AdaMagica [this message]
replies disabled

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