comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: overloading operators
Date: Mon, 26 Nov 2018 18:03:20 +0000
Date: 2018-11-26T18:03:20+00:00	[thread overview]
Message-ID: <lyh8g33edz.fsf@pushface.org> (raw)
In-Reply-To: ab6cb0c9-8f7d-47a0-8d30-4170f239a7c9@googlegroups.com

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

  reply	other threads:[~2018-11-26 18:03 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 [this message]
2018-11-26 18:24             ` Dmitry A. Kazakov
replies disabled

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