Thread overview
v137 not backward compatible
Oct 28, 2005
Kris
Nov 07, 2005
Thomas Kuehne
Nov 14, 2005
Kris
October 28, 2005
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
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
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-----