the point of selective importing
kris
foo at bar.com
Tue Jul 11 18:20:54 PDT 2006
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'm sure we could all think of cases where the latter would be useful,
but prefix-import (call it partially-qualified-symbols if one prefers)
would suffice, IMO.
>>No static, no alias. Looks very much like the existing import, and is
>>almost as effortless to use. Perhaps you might like to read the "Import
>>RFC" posted? It explains the issues in a little more depth.
>
>
> kris, I read it already.
Yes, I realized that right after the above post. Sorry about that :(
More information about the Digitalmars-d
mailing list