From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
autolearn_force=no version=3.4.4
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,2fc95e32fd071218
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2002-11-24 13:57:24 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!opentransit.net!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: Two class-wide operands, but only one controlling
Date: 24 Nov 2002 22:56:44 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <3ddfa8b8$0$304$bed64819@news.gradwell.net>
<3de0b9be$0$304$bed64819@news.gradwell.net>
NNTP-Posting-Host: avelizy-103-1-2-239.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader10.wanadoo.fr 1038175043 11535 217.128.15.239 (24 Nov 2002
21:57:23 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 24 Nov 2002 21:57:23 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92
Xref: archiver1.google.com comp.lang.ada:31202
Date: 2002-11-24T21:57:23+00:00
List-Id:
porton@ex-code.com (Victor Porton) writes:
> Not what I need. basically I have a container and an iterator.
> Both a derived (in my case I need this) from abstract container
> and abstract iterator. I need procedure like:
>
> procedure Next
> (C: Abstract_Container'Class; I: in out Abstract_Iterator'Class);
>
> but this is an error as we have two controlling operands of
> different types :-(
Certainly not. 'Class formal parameters are not controlling operands, your
Next procedure above is perfectly legal.
> It was simple in C++. Ada has disadvantages...
No, you misunderstood Ada :)
> > The actual parameter of a class-wide formal parameter cannot be a
> > controlling operand.
>
> Samuel, di you meant vice versa?
No, we have be 2 of us saying the same thing but you did not listen :)
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595