scoped imports
monarch_dodra
monarchdodra at gmail.com
Sun Aug 18 09:44:31 PDT 2013
On Sunday, 18 August 2013 at 14:52:04 UTC, Joseph Rushton
Wakeling wrote:
> On Sunday, 18 August 2013 at 09:52:29 UTC, Timothee Cour wrote:
>> On Sun, Aug 18, 2013 at 2:31 AM, Joseph Rushton Wakeling <
>> joseph.wakeling at webdrake.net> wrote:
>>
>>> On Sunday, 18 August 2013 at 01:33:51 UTC, Timothee Cour
>>> wrote:
>> granted, that's not ideal. How about the other points I
>> mentioned?
>> void fun(){
>> version=A;
>> version(none):
>> }
>
> Not sure I understand what you're trying to achieve there. But
> as an alternative to function-local import, why not split your
> module into a package, with submodules mymodule.bardependent
> and mymodule.nonbardependent ... ?
Related: is it possible to pack several modules/submodules in a
single file? Or do you necessarily have to split them up?
More information about the Digitalmars-d-learn
mailing list