comp.lang.ada
 help / color / mirror / Atom feed
From: Mehdi Saada <00120260a@gmail.com>
Subject: Re: questions on RM's section of subprograms and dispatching
Date: Fri, 23 Feb 2018 12:59:56 -0800 (PST)
Date: 2018-02-23T12:59:56-08:00	[thread overview]
Message-ID: <545bd208-7d1f-4ae3-bb15-58eda71ae2a4@googlegroups.com> (raw)
In-Reply-To: <c9d0cf06-59b5-4820-88d4-4f2681163bd5@googlegroups.com>

> Okay, I'm lost. In why section is it explained ?
I can see many non-abstract methods with class-wide controlling parameters/results, which I'm fine... I forgot telling that.
But then there is
   function Available (C : Abstract_Collection) return Natural is
      pragma Warnings (Off, C);
   begin
      return Natural'Last;
   end Available;
which I don't know what to think of. Is it special in any way ? Or could it have any content, and the body will be inherited the descendants ? I guess it's the second choice. I'll see in Ada distilled and the others ressources before coming back to OOP.


  reply	other threads:[~2018-02-23 20:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-23 20:22 questions on RM's section of subprograms and dispatching Mehdi Saada
2018-02-23 20:43 ` Simon Wright
2018-02-23 20:53   ` Mehdi Saada
2018-02-23 20:59     ` Mehdi Saada [this message]
2018-02-23 21:55       ` Mehdi Saada
2018-02-23 20:57   ` 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