From: Victor Porton <porton@narod.ru>
Subject: Re: Should be in the root package or its child?
Date: Thu, 24 Jul 2014 19:21:40 +0300
Date: 2014-07-24T19:21:40+03:00 [thread overview]
Message-ID: <lqrbqh$5ek$1@speranza.aioe.org> (raw)
In-Reply-To: 33af85fe-a92c-415a-b6aa-c658d95ca18c@googlegroups.com
AdaMagica wrote:
> On Wednesday, July 23, 2014 8:58:24 PM UTC+2, Victor Porton wrote:
>> Should I put World_Type (used by almost every program which uses my
>> library) into the root package of my library or into some its child
>> package?
>
> I think this answers your question. If it is so basic, it belongs into the
> root, irrespecitve of what you call the "size".
>
>> I think that it depends on the "size" (number of primitive routines,
>> roughly saying) associated with World_Type. If it is small, I should keep
>> it in the root package, and if it is big to "allocate" a new subunit.
But can you elaborate why?
I am writing Ada bindings for the Raptor C library.
The package RDF.Raptor is currently empty:
package RDF.Raptor is
end RDF.Raptor;
So a user is probably not meant to "with" this package, only its childs.
If I place World_Type into a child package RDF.Raptor.World, it requires
user to type just one more level in "with" and "use". It is not a heavy
burden.
But on the other hand, things become more finely classified if I use child
packages.
So, do you insist, that it should not be in a child library package?
--
Victor Porton - http://portonvictor.org
next prev parent reply other threads:[~2014-07-24 16:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-23 18:58 Should be in the root package or its child? Victor Porton
2014-07-23 19:02 ` Victor Porton
2014-07-24 9:06 ` AdaMagica
2014-07-24 16:21 ` Victor Porton [this message]
2014-07-25 8:52 ` AdaMagica
2014-07-25 12:20 ` Victor Porton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox