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 01:00:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!wanadoo.fr!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Two class-wide operands, but only one controlling Date: Sun, 24 Nov 2002 09:59:02 +0100 Organization: TELECOM Paris Message-ID: <877kf34a3t.fsf@inf.enst.fr> References: <3ddfa8b8$0$304$bed64819@news.gradwell.net> <3de08dce$0$301$bed64819@news.gradwell.net> NNTP-Posting-Host: beeblebrox-tun.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.enst.fr 1038128449 83036 137.194.161.40 (24 Nov 2002 09:00:49 GMT) X-Complaints-To: usenet@melchior.enst.fr NNTP-Posting-Date: Sun, 24 Nov 2002 09:00:49 +0000 (UTC) Mail-Copies-To: usenet@sam.rfc1149.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Military Intelligence, i386--freebsd) Cancel-Lock: sha1:NFAv4hFuLHM2uBibRZ0xUq97hq0= Xref: archiver1.google.com comp.lang.ada:31192 Date: 2002-11-24T09:59:02+01:00 List-Id: >>>>> "Victor" == Victor Porton writes: Victor> In article , Victor> Pascal Obry writes: >> porton@ex-code.com (Victor Porton) writes: >> >>> I want something like a procedure with two class-wide operands, >>> (of two different types) but only one of these controlling. >>> >>> The solution I found is introducing new tagged record types which >>> would refer to these two types and passing both operands as one >>> operand in such the record. Other solutions? >> >> Declare the second one as a class-wide ('Class) parameter. Victor> What?! It is clearly stated that I want _both_ of them class Victor> wide... I think you are confusing actual (in the call) and formal (in the declaration) parameters. Pascal proposes that you use a first non-class-wide formal parameter and a second class-wide formal parameter. The actual parameter of a class-wide formal parameter cannot be a controlling operand. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam