From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Re: Constant as anonymous functions : the outer space beast is back
Date: Tue, 2 Feb 2010 11:34:08 -0800 (PST)
Date: 2010-02-02T11:34:08-08:00 [thread overview]
Message-ID: <454c900f-85ed-4a40-ad13-a5b432261b99@c29g2000yqd.googlegroups.com> (raw)
In-Reply-To: aa6fc1b7-3a39-4510-9181-f294a0d60943@o28g2000yqh.googlegroups.com
On 30 jan, 09:45, AdaMagica <christoph.gr...@eurocopter.com> wrote:
> And even if you make Count a function (overloadable), this example
> code is still illegal in Ada as is - and that's a good thing.
>
> package P is
> function Count return Float;
> end P;
Yes, because the Count loop variant still hide the one from P.
That's the proof there would be no bad side effects to make the “
equivalent ” constant overloadable the same way.
If it's not good for constants, so why should it be good for
functions ?
Reciprocally, if it's Ok for functions, why wouldn't it be good for
constants ?
What's the rational underlying this distinction between constants as
functions ? Isn't it just a matter of implementation after all ? I see
implementation differences, no any semantic ones (I know some
implementation choices have legitimately semantic side effects, but
this one should not, unless there are opposite arguments which I do
not know about).
next prev parent reply other threads:[~2010-02-02 19:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-27 1:57 Constant as anonymous functions : the outer space beast is back Hibou57 (Yannick Duchêne)
2010-01-27 2:12 ` Robert A Duff
2010-01-27 2:15 ` Hibou57 (Yannick Duchêne)
2010-01-30 2:42 ` Randy Brukardt
2010-01-30 8:45 ` AdaMagica
2010-02-02 19:34 ` Hibou57 (Yannick Duchêne) [this message]
2010-02-05 21:51 ` Randy Brukardt
2010-02-05 22:41 ` Hibou57 (Yannick Duchêne)
2010-02-06 9:34 ` Dmitry A. Kazakov
2010-02-07 16:22 ` Robert A Duff
2010-02-09 0:22 ` Randy Brukardt
2010-02-02 19:36 ` Hibou57 (Yannick Duchêne)
2010-02-02 21:26 ` Adam Beneschan
2010-02-02 21:47 ` Hibou57 (Yannick Duchêne)
2010-02-03 0:55 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox