comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Eachus <rieachus@comcast.net>
Subject: Re: Difference between F(X, ...) and X.F(...)
Date: Sat, 19 Nov 2016 06:34:58 -0800 (PST)
Date: 2016-11-19T06:34:58-08:00	[thread overview]
Message-ID: <d8a000ad-0577-4f3f-9dde-695d9b9a02e8@googlegroups.com> (raw)
In-Reply-To: <o0pmua$80n$1@gioia.aioe.org>

On Saturday, November 19, 2016 at 9:17:49 AM UTC-5, Victor Porton wrote:
> In Ada2012 Is there any difference between
> 
> F(X, ...)
> 
> and
> 
> X.F(...)
> 
> provided that X is a value of a tagged type of class-wide type?	

The overload resolution rules are different.  Of course, anytime that difference actually matters in code--other than compiler tests--is pretty silly.  For example, X could have a component F which is an array with arguments compatible with the function F...


  reply	other threads:[~2016-11-19 14:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-19 14:17 Difference between F(X, ...) and X.F(...) Victor Porton
2016-11-19 14:34 ` Robert Eachus [this message]
2016-11-19 14:51   ` AdaMagica
2016-11-19 15:32     ` 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