import concerns (was Re: Historical language survey)
Carlos Santander
csantander619 at gmail.com
Sat Jul 8 07:33:53 PDT 2006
Walter Bright escribió:
> kris wrote:
>> Walter Bright wrote:
>>
>>> What can also be done is extend the import declaration to allow the
>>> .'s to continue so that specific symbols can be imported.
>>
>> Now that would be great. I believe selective-importing (as an option)
>> would be a boon in a number of ways ~ and would resolve this issue
>> quite elegantly.
>
> I like this one better, too.
>
>
I like it too, but I have a question: how far would it go? Would we be able to
do this:
//----------
module a;
class Foo
{
enum Bar { ... }
struct Baz
{
const something = ...;
}
}
//----------
module b;
import a.Foo.Bar;
import a.Foo.Baz.something;
//----------
Or just module members?
--
Carlos Santander Bernal
More information about the Digitalmars-d
mailing list