From: "björn lundin" <b.f.lundin@gmail.com>
Cc: nma@12000.org
Subject: Re: on the need to duplicate code for procedure signature in both body and interface files
Date: Fri, 13 Jul 2012 10:12:25 -0700 (PDT)
Date: 2012-07-13T10:12:25-07:00 [thread overview]
Message-ID: <7240103a-0072-42e4-b2db-c010b6f410a4@googlegroups.com> (raw)
In-Reply-To: <jtafi8$pvg$1@speranza.aioe.org>
Den söndagen den 8:e juli 2012 kl. 01:08:53 UTC+2 skrev Nasser M. Abbasi:
> Basic question from an Ada newbie.
>
> One thing that always bothered me in Ada is the need
> to physically duplicate the code that represents the API
> of the package procedures and functions in both the interface
> and the body files (.ads and .adb).
>
I think a good reason is when you hvae a large system to write.
I person does the design, and writes thes specs.
He the writes a basic flow, while others may write the implementations.
It was perhaps more important in the days before good version handling systems.
But still, it is a useful feature, just as separates are.
When many people wants to change in the same file, separate some functions may help.
And they are still visible in the body.
/Björn
prev parent reply other threads:[~2012-07-13 17:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-07 23:08 on the need to duplicate code for procedure signature in both body and interface files Nasser M. Abbasi
2012-07-08 4:01 ` Shark8
2012-07-08 17:13 ` Brian Drummond
2012-07-08 4:21 ` Niklas Holsti
2012-07-08 6:09 ` Jeffrey Carter
2012-07-13 15:51 ` Robert A Duff
2012-07-08 7:38 ` Stephen Leake
2012-07-08 10:52 ` Manuel Collado
2012-07-09 1:48 ` Britt
2012-07-09 10:49 ` AdaMagica
2012-07-09 15:11 ` Adam Beneschan
2012-07-13 17:12 ` björn lundin [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox