comp.lang.ada
 help / color / mirror / Atom feed
From: "Alejandro R. Mosteo" <alejandro@mosteo.com>
Subject: Re: attributes on expressions, not name
Date: Wed, 28 Feb 2018 19:38:59 +0100
Date: 2018-02-28T19:38:59+01:00	[thread overview]
Message-ID: <p76t03$v9d$1@dont-email.me> (raw)
In-Reply-To: <ffo8p4FlfijU1@mid.individual.net>

On 28/02/18 18:55, Niklas Holsti wrote:
> 
> If I have one function LINE return String, and another LINE return 
> Integer, and try to compute LINE'Length, GNAT tells me:
> 
> func_attr.adb:22:41: ambiguous prefix for "Length" attribute

Recently in a similar case, GNAT even suggested to me to disambiguate 
like so:

String'(LINE)'Length

  reply	other threads:[~2018-02-28 18:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-28 16:57 attributes on expressions, not name Mehdi Saada
2018-02-28 17:55 ` Niklas Holsti
2018-02-28 18:38   ` Alejandro R. Mosteo [this message]
2018-02-28 21:36     ` Mehdi Saada
replies disabled

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