comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Suggestions needed to split a package
Date: Fri, 24 May 2019 18:14:38 +0200
Date: 2019-05-24T18:14:38+02:00	[thread overview]
Message-ID: <qc9595$ime$1@dont-email.me> (raw)
In-Reply-To: <9fd1cb3d-6e81-47bb-afd2-cae1cd3658a1@googlegroups.com>

Den 2019-05-24 kl. 17:49, skrev A. Cervetti:
> A package in the program I am writing is getting too long.
> So I thought it would be a good idea to split it.
> 
> The package is here: https://github.com/andreacervetti/ada-virt-monitor/tree/master/avm/src/monitor (files monitor-structures.ad*).
> 
> My problems are:
> I'd like to avoid forcing clients of the package to "with" too many modules.
> I want keep private types private.

If it is only file size that is your concern, you
can look at moving some functions via 'separate' to other files.
It does not change your structure, and clients of
the package does not know -> not more withs than current solution

-- 
Björn

  reply	other threads:[~2019-05-24 16:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-24 15:49 Suggestions needed to split a package A. Cervetti
2019-05-24 16:14 ` Björn Lundin [this message]
2019-05-24 20:26   ` Randy Brukardt
2019-05-24 21:21     ` Shark8
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox