From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: parent package referring to child
Date: Fri, 12 Oct 2007 04:15:03 GMT
Date: 2007-10-12T04:15:03+00:00 [thread overview]
Message-ID: <bxCPi.129728$Xa3.92874@attbi_s22> (raw)
In-Reply-To: <1192095936.309410.62410@k79g2000hse.googlegroups.com>
george@gentoo.org wrote:
> I have been faced with just such a problem, when writing a library to
> access abf files (a special data format used by the most common
> software in electrophysiology). I needed to define a record type with
> near a thousand fields (beat you here ;)) and did not want to put it
> all into the single spec. My solutions was exactly redesign, or rather
> I designed it from ground up to be appropriately split between the
> parent and child modules.
This perhaps makes sense for this specific situation (files with a
number of different layouts, based on the data at the beginning of the
file), but I don't understand this attitude in general. Given the basic
package structure
package P is
type T is ...
procedure P1 (V : [mode] T ...);
procedure P2 (V : [mode] T ...);
... -- Additional operations as needed.
end P;
why do some seem to think it's OK to have T declared here if the
declaration is short, but not if it is (perceived to be) long? It's the
same concept in both cases and should, I think, be implemented in a
uniform way.
--
Jeff Carter
"You tiny-brained wipers of other people's bottoms!"
Monty Python & the Holy Grail
18
next prev parent reply other threads:[~2007-10-12 4:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 6:23 parent package referring to child eliben
2007-10-10 9:07 ` Georg Bauhaus
2007-10-10 9:24 ` eliben
2007-10-10 14:46 ` Adam Beneschan
2007-10-10 19:26 ` Simon Wright
2007-10-10 14:59 ` Matthew Heaney
2007-10-10 18:54 ` Vadim Godunko
2007-10-10 19:32 ` Matthew Heaney
2007-10-10 20:20 ` Adam Beneschan
2007-10-11 4:12 ` Randy Brukardt
2007-10-11 15:21 ` Adam Beneschan
2007-10-19 12:45 ` Vadim Godunko
2007-10-10 19:51 ` Matthew Heaney
2007-10-10 17:06 ` Jeffrey R. Carter
2007-10-10 19:17 ` anon
2007-10-11 9:45 ` george
2007-10-12 4:15 ` Jeffrey R. Carter [this message]
2007-10-12 9:51 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox