auto

mta`chrono chrono at mta-international.net
Sat Nov 26 08:19:26 PST 2011


Did you know that auto is not auto in the way auto behalfs. it's just a
placeholder so the compiler can determine that a variable follows. but
you can use any other keyword for type interfering, too.

void main()
{
    const a = FunctionThatReturnsSomething();
    static b = 5.0;
    scope c = "hey";
}


More information about the Digitalmars-d-learn mailing list