Thread overview | |||||
---|---|---|---|---|---|
|
October 28, 2005 v137 not backward compatible | ||||
---|---|---|---|---|
| ||||
void main() { // v137 now requires 'static' on this class declaration class Foo { static Foo create() { return new Foo; // error here } } } # foo.d(9): function foo.main is a nested function and cannot be accessed from create |
November 07, 2005 Re: v137 not backward compatible | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kris Attachments: | Kris schrieb am 2005-10-28: > void main() > { > // v137 now requires 'static' on this class declaration > class Foo > { > static Foo create() > { > return new Foo; // error here > } > } > } > > > # foo.d(9): function foo.main is a nested function and cannot be accessed from create Added to DStress as http://dstress.kuehne.cn/run/s/static_34_A.d http://dstress.kuehne.cn/run/s/static_34_B.d Thomas |
November 14, 2005 Re: v137 not backward compatible | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | Any word on this error? "Thomas Kuehne" <thomas-dloop@kuehne.cn> wrote in message news:2g1343-9nf.ln1@birke.kuehne.cn... > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kris schrieb am 2005-10-28: >> void main() >> { >> // v137 now requires 'static' on this class declaration >> class Foo >> { >> static Foo create() >> { >> return new Foo; // error here >> } >> } >> } >> >> >> # foo.d(9): function foo.main is a nested function and cannot be accessed >> from create > > Added to DStress as http://dstress.kuehne.cn/run/s/static_34_A.d http://dstress.kuehne.cn/run/s/static_34_B.d > > Thomas > > > -----BEGIN PGP SIGNATURE----- > > iD8DBQFDbtbi3w+/yD4P9tIRAi7pAJ0aen6kF7eElOH+noOYanE6VFG5rQCfZ0AP > Rrny00Jsjcj3l4M9XQi9xTE= > =qs9P > -----END PGP SIGNATURE----- |
Copyright © 1999-2021 by the D Language Foundation