Walter Bright wrote:
Ary Borenszweig wrote:
The thing is, I've been using Java for more than 7 years now and I
never got any error because of intialization dependency. It would be
nice to turn that check off in D and see the results. Maybe no one
will complain about it.
Eliminating implementation-defined behavior like that makes a language
more reliable and portable. Java's failure to address this is a hole in
their system.
It's not implementation-defined. When a class is loaded (the times at
which it is are specified), static members are initialized and static
blocks run in the order that they appear in the source file.
- Re: static this sucks, we should deprecate it Ary Borenszweig
- Re: static this sucks, we should deprecate it Steven Schveighoffer
- Re: static this sucks, we should deprecate i... Ary Borenszweig
- Re: static this sucks, we should depreca... Steven Schveighoffer
- Re: static this sucks, we should depreca... Walter Bright
- Re: static this sucks, we should dep... Robert Fraser
- Re: static this sucks, we should dep... Walter Bright
- Re: static this sucks, we should dep... Tim Matthews
- Re: static this sucks, we should dep... Derek Parnell
- Re: static this sucks, we should dep... Christopher Wright
- Re: static this sucks, we should dep... Walter Bright
- Re: static this sucks, we should dep... Jarrett Billingsley
- Re: static this sucks, we should dep... Walter Bright
- Re: static this sucks, we should dep... grauzone
- Re: static this sucks, we should dep... Michel Fortin
- Re: static this sucks, we should dep... grauzone