Fixing cyclic import static construction problems

Regan Heath regan at netmail.co.nz
Fri Nov 30 06:31:01 PST 2012


On Fri, 30 Nov 2012 14:29:19 -0000, Tove <tove at fransson.se> wrote:

> On Friday, 30 November 2012 at 14:09:48 UTC, foobar wrote:
>> Why not simplify?
>>
>> static this()
>> {
>> import std.stdio, a, c; // existing syntax
>>    ...
>> }
>>
>> static this()
>> { // no imports -> no dependencies
>>    ...
>> }
>>
>> The current behavior should just be dropped.
>
> +2
> Simple & Elegant.

-2
Confusing.  What is the scope of the import?  How does it interact with  
imports above/below the static this?

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list