the point of selective importing

Regan Heath regan at netwin.co.nz
Tue Jul 11 22:09:33 PDT 2006


On Tue, 11 Jul 2006 18:20:54 -0700, kris <foo at bar.com> wrote:
> Jari-Matti Mäkelä wrote:
>> kris wrote:
>>> The syntax itself does not need to be complex at all.
>>   Right. I only meant that the syntax does not have to be a monster  
>> like this
>>  [<protection>] [static] import {[in]} <FQN Module> [alias <Module  
>> Alias>]
>> {[<<Member> [alias <Member Alias>]>[, ...]]};
>>
>
> Right. This simpler the syntax, the better (in this case). I suspect  
> that the use of prefix-import alone would be sufficient, and the  
> optional selective-import is somewhat redundant?

I agree. It seems that selective-import solves the same problem (avoiding  
clashes) in a less comprehensive fashion than the prefix-import. Unless  
there is some other problem the selective-import solves?

Regan



More information about the Digitalmars-d mailing list