Proposal for an extension to the import syntax

Alexander Panek a.panek at brainsware.org
Mon Dec 11 23:57:34 PST 2006


Bloooat. :\

Tomas Lindquist Olsen wrote:
>> What about using something like the With statement?
>>
>> Some possible examples:
>>
>> with package.sub_package.vendor {
>>   import module_a.sub1;
>>   import module_a.sub2;
>>   import module_b;
>> }
>>
>> with package.sub_package.vendor {
>>   with module_a {
>>      import sub1;
>>      import sub2;
>>   }
>>   import module_b;
>> }
>>
>> -- Tom J
>>
>>   import module_a.sub2;
>>   import module_b;
>> }
> 
> Or what about:
> 
> import(package.sub_package) {
>   import(module_a) {
>     import sub1;
>   }
> }



More information about the Digitalmars-d mailing list