link error for 2+ static this()
Derek Parnell
derek at psych.ward
Wed Jun 7 19:10:12 PDT 2006
On Wed, 07 Jun 2006 14:36:40 -0500, Carlos Santander wrote:
>>> this code compiled with gdc-0.18
>>>
>>> //begin test.d
>>> uint a=0,b=0;
>>> static this()
>>> {
>>> a=1;
>>> }
>>> static this()
>>> {
>>> b=2;
>>> }
>>> void main()
>>> {
>>> printf("%i, %i\n",a,b);
>>> }
>>> //end test.d
>>> prints this
>>> 1, 2
>
> I would expect that, and I'd prefer for it to be allowed ... I think that's cool!
Me too! I have suggested this to Walter some time back, and there is a
syntactical precedence with the way that the 'scope' statements work.
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocrity!"
8/06/2006 12:08:23 PM
More information about the Digitalmars-d-bugs
mailing list