What happened to the alias this = identifier syntax in 2.062?

Joshua Niehus jm.niehus at gmail.com
Fri Feb 22 15:55:06 PST 2013


didn't fully formulate that thought:

above examples vs. the following

struct Fraction
{
     long numerator;
     long denominator;

     double value() const @property
     {
         return cast(double)numerator / denominator;
     }

     auto opPseudonym() { /* points to value() ? */ }
     alias opPsuedonym=value;  // ??
}



More information about the Digitalmars-d mailing list