[bug #22866] Class constructor is not called correctly when accessing a class variable

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown [bug #22866] Class constructor is not called correctly when accessing a class variable

by Sharif Oerton-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of bug #22866 (project dotgnu-pnet):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

ECMA specs say that the static constructor has to be executed before a static
member is accessed.
It doesn't explicitly say that the cctor has to be executed just before the
first static member is accessed.
In pnet the cctors are executed before a function is executed that might
access a static member.
This avoids emitting code in the function to check if the cctor was executed
and to call it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22866>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



_______________________________________________
Dotgnu-pnet mailing list
Dotgnu-pnet@...
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet
LightInTheBox - Buy quality products at wholesale price!