scoped imports
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Sun Aug 18 02:31:33 PDT 2013
On Sunday, 18 August 2013 at 01:33:51 UTC, Timothee Cour wrote:
> that's not DRY: in my use case, a group of functions use
> certain imports,
> it would be annoying and not DRY to do that. What I suggest
> (allowing {}
> grouping at module scope) seems simple and intuitive; any
> reason it can't be done?
How do you ensure that the imports are limited to your {} scope,
but your functions are not, without a finnicky special case for
how scopes work?
More information about the Digitalmars-d-learn
mailing list