<div dir="ltr">Awesome!<div>Here's hoping for swift inclusion! :)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 July 2014 03:43, Dicebot via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Monday, 21 July 2014 at 17:32:53 UTC, Manu via Digitalmars-d wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm having all sorts of visibility problems.<br>
I have this:<br>
<br>
  app/system/...<br>
  app/system/widgets/...<br>
<br>
The 'system'/manager should be able to access all the widgets internals,<br>
but things outside the system shouldn't be able to touch the internals.<br>
This is what 'package' is supposed to be for, except 'package' in widgets<br>
only allows access to other widgets, 'system' level modules have no<br>
access...<br>
<br>
Is there a workaround for this case? I'm not sure what to do.<br>
<br>
I guess the trouble is that 'package' specifies sibling modules and below,<br>
but nothing above... but this isn't always the module structure.<br>
I'm thinking 'package' needs to know the top level that can access<br>
internals. Perhaps this would solve my problem elegantly:<br>
<br>
  module app.system.widgets.widget;  // <- module is beneath 'widgets'<br>
<br>
  package(app.system):<br>
  ...  internal stuff that 'app.system' (ie, the 'package') and below can<br>
access ...<br>
<br>
Or is there an existing solution that I can't find?<br>
</blockquote>
<br>
</div></div><a href="https://github.com/D-Programming-Language/dmd/pull/3651" target="_blank">https://github.com/D-<u></u>Programming-Language/dmd/pull/<u></u>3651</a><br>
</blockquote></div><br></div>