www.digitalmars.com         C & C++   DMDScript  

D - problem with property..

reply "Lloyd Dupont" <lloyd galador.net> writes:
the following simple code doesn't compile.
dmd (v0.50) pretend uu is not a field
//=========
class CLS
{
    void uu(int i) {}
    int uu() { return 4; }
}

int main() {
    CLS c = new CLS();
    printf("%d\n\0", c.uu);
    return 0;
}
//=========
Nov 23 2002
parent "Walter" <walter digitalmars.com> writes:
The property function stuff isn't implemented yet. Sorry. -Walter

"Lloyd Dupont" <lloyd galador.net> wrote in message
news:arno4p$8ia$1 digitaldaemon.com...
 the following simple code doesn't compile.
 dmd (v0.50) pretend uu is not a field
 //=========
 class CLS
 {
     void uu(int i) {}
     int uu() { return 4; }
 }

 int main() {
     CLS c = new CLS();
     printf("%d\n\0", c.uu);
     return 0;
 }
 //=========
Nov 23 2002