From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: overloading operators
Date: Mon, 26 Nov 2018 19:24:49 +0100
Date: 2018-11-26T19:24:49+01:00 [thread overview]
Message-ID: <pthdpj$1b6q$1@gioia.aioe.org> (raw)
In-Reply-To: lyh8g33edz.fsf@pushface.org
On 2018-11-26 19:03, Simon Wright wrote:
> Anh Vo <anhvofrcaus@gmail.com> writes:
>
>> On Thursday, November 22, 2018 at 12:18:06 AM UTC-8, briot.e...@gmail.com wrote:
>>>> You can always say e.g. Ada.Numerics.Real_Arrays."*" (A, B) but it is
>>>> rather clumsy compared to A * B!
>>>
>>>
>>> The main use I have for that notation is in expression functions in specs,
>>> since we try to avoid use clauses in specs. So for instance:
>>>
>>> function Greater (A, B : Some_Package.My_Type) return Some_Package.My_Type
>>> is (Some_Package.">" (A, B));
>>
>> What is wrong with "use type clause"?
>
> Nothing, but OP was asking about what qualifications are available
Then I think one forgot qualification of the arguments:
...
is (Some_Package.">" (Some_Package.Greater.A, Some_Package.Greater.B));
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
prev parent reply other threads:[~2018-11-26 18:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-21 9:56 overloading operators hnptz
2018-11-21 11:28 ` Jeffrey R. Carter
2018-11-21 13:50 ` AdaMagica
2018-11-21 13:52 ` AdaMagica
2018-11-21 16:39 ` hnptz
2018-11-21 17:37 ` Simon Wright
2018-11-22 8:18 ` briot.emmanuel
2018-11-22 11:39 ` Simon Wright
2018-11-26 17:47 ` Anh Vo
2018-11-26 18:03 ` Simon Wright
2018-11-26 18:24 ` Dmitry A. Kazakov [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