From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Constant as anonymous functions : the outer space beast is back
Date: Tue, 26 Jan 2010 17:57:15 -0800 (PST)
Date: 2010-01-26T17:57:15-08:00 [thread overview]
Message-ID: <3c43bf9d-75f1-4d09-9388-65b83cafb1d9@j14g2000yqm.googlegroups.com> (raw)
Hi,
I'm back with the topic “ constant as anonymous functions ” ( I've
opened last year, about 10 months ago if my mind is right ) with a new
argument advocating for it : I have a simple design rule which state
that I automatically add a “ pragma Elaborate_Body ” in the heading of
a package specification, as soon as this package defines functions
which have the semantic of constants, because dependencies to the
specifications as supposed to be possible dependencies to these “
constants ”, and as elaboration of these “ constants ” requires body
elaboration, a dependency to such a package specification is supposed
to probably requires body elaboration.
Here we are : the lack of constants as anonymous functions turn into
consequences on the package elaboration order. That's big (at least to
me).
Another argument : enabling constants to be anonymous functions would
allow to change a functions into a constant without breaking anything,
unlike what is in the actual state. Actually, there seems to be a kind
of implementation dependency in specifications due to the lack of
constants as functions.
Third, but already pointed (as I remember) when the topic was opened
about ten months ago : this would not break any existing sources and
designs.
Who want to talk about this subject ?
next reply other threads:[~2010-01-27 1:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-27 1:57 Hibou57 (Yannick Duchêne) [this message]
2010-01-27 2:12 ` Constant as anonymous functions : the outer space beast is back 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)
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