D2 status interim report ?

Extrawurst spam at extrawurst.org
Sun Jun 22 04:29:12 PDT 2008


Hey Walter,
this is just a list of changes which were originally planned to be 
integrated into D2.0 according to the slides you and Andrei presented on 
DConference '07. So please give us a comment on what perhaps has changed 
or when certain things are going to be addressed.
A little insight on your roadmap would be great.

(1) STRUCT opImplicitCastTo/From (p.21)
---------------------------------
How do you want to solve the problem of overloading by return value 
which would be necessary to solve something like the example in the 
slides (p.21):

    struct S{
        int opImplicitCastTo(){...}
        float opImplicitCastTo(){...}
    }
    
(2) STRUCT "inheritance" (p.27)
---------------------------------
Is this still planned as it was meant to be some kind of 
template-concepts-replacement, now that there is the 
template-constraints implementation (D2.015) ?

(3) ENUM Member Lookup Rules (p.34)
---------------------------------
I hope this one did not fall under the table, though it is a small thing 
cause it would simplify many enum usages.

enum OpenMode {READ, WRITE, READ_WRITE}
void foo(OpenMode mode = READ){...}

(4) return Storage Class (p.38)
---------------------------------
No more doubled getter functions for const/not-const !

(5) final switch (p.41)
---------------------------------
This one is such a great proposal, when will it be implemented? No more 
worry if on runtime a enum value leads to the safety "default: 
assert(false);" control path because perhaps i have forgotton to add new 
behaviour after adding a new enum member.

(6) AST macros (p.45)
---------------------------------
The wet dream of every D-coder but when is it going to become reality ?

(7) static foreach (p.52)
---------------------------------


My final bid is again, please let the community know what your roadmap 
is, so we can stop wonder how and if all this is still going to be part 
of D2.0 which was intended to become stable in this years fall.

Regards for the awesome work on our all-favourite programming language !

~Stephan



More information about the Digitalmars-d mailing list