Focus
deadalnix
deadalnix at gmail.com
Mon Jan 21 06:33:36 PST 2013
On Monday, 21 January 2013 at 14:26:13 UTC, Andrej Mitrovic wrote:
> On 1/21/13, Peter Alexander <peter.alexander.au at gmail.com>
> wrote:
>> This is being blown completely out of proportion.
>
> I don't think so.
>
> Consider that currently it's impossible to hide any symbols
> from a
> user if they are located in subpackages. Which means you're
> forced to
> either put everything into the same package and use the package
> access
> specifier, or put everything into the same module.
>
Package have nothing to do with the private discussion that take
place here.
> The problem I have with this is it makes it impossible to
> separate
> implementation-specific modules into their subpackages without
> giving
> access of these symbols to the user. Consider that the
> following would
> make a nice folder structure for a library:
>
> lib/gui.d
> lib/platform/win32/gui.d
> lib/platform/posix/gui.d
>
> Unfortunately everything in lib/platform must be public in
> order for
> gui.d to use it, and as a consequence user-code ends up having
> access
> to these platforms-specific implementation modules.
>
Ideally, package should allow this in a way or another.
More information about the Digitalmars-d
mailing list