DMD 0.163 release

Boris Wang nano.kago at hotmail.com
Wed Jul 19 01:10:50 PDT 2006


"Derek Parnell" <derek at nomail.afraid.org> 
??????:12pinsuw7ixot$.1uioiq6i09vc2$.dlg at 40tude.net...
> On Tue, 18 Jul 2006 13:13:37 -0700, Walter Bright wrote:
>
>> http://www.digitalmars.com/d/changelog.html
>>
>> This has all the new import changes in it. That breaks a lot of existing
>> code (like dmdscript), the fixes are simple (adding more import
>> declarations) but tedious.
>
> Thanks Walter.
>
> v0.163 compiled Build and all its modules without having to change a 
> single
> line of code. None of my code was broken with this release.
>
>
> However, I will need to upgrade Build to cater for the new module renaming
> syntax ASAP.
>
>> I couldn't find a better keyword choice than "static import".
>
> Given that the form "static import XXX" and "import XXX = whatever" both
> require XXX to be used when referencing members, the 'static' import is
> only required when one is not renaming the module, eg.   "import io =
> std.stdio;" and "static import io = std.stdio;" are identical, I sort of
> liked the idea that dropped the need for 'static' and if one wanted to
> force FQN using the normal module name, one could have written "import
> std.stdio = std.stdio;".
>

If we can use FQN access a symbol directly, not need any importing, all 
things going bo be consistent and natural.

int main(void)
{
    std.stdio.writefln("Just do it"); // not need any importing
    ...
}

> -- 
> Derek
> (skype: derek.j.parnell)
> Melbourne, Australia
> "Down with mediocrity!"
> 19/07/2006 2:01:37 PM 





More information about the Digitalmars-d-announce mailing list