October 09, 2002 RIAA and constructors | ||||
---|---|---|---|---|
| ||||
Is it a bug or does it work as designed?
auto class A
{
this()
// functions cannot return auto A
{
printf("A.this()\n");
}
~this()
{
printf("A.~this()\n");
}
};
int main(char[][] argv)
{
auto A a = new A();
printf("Hello world.\n");
return 0;
}
bye, Christof
--
http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de
|
October 09, 2002 Re: RIAA and constructors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christof Meerwald | It's a bug. -Walter "Christof Meerwald" <cmeerw@web.de> wrote in message news:ao16gh$1hei$2@digitaldaemon.com... > Is it a bug or does it work as designed? > > auto class A > { > this() > // functions cannot return auto A > { > printf("A.this()\n"); > } > > ~this() > { > printf("A.~this()\n"); > } > }; > > > int main(char[][] argv) > { > auto A a = new A(); > > printf("Hello world.\n"); > > return 0; > } > > > bye, Christof > > -- > http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de > |
Copyright © 1999-2021 by the D Language Foundation