|
From: | Klaus Treichel |
Subject: | [Dotgnu-pnet] [bug #22866] Class constructor is not called correctly when accessing a class variable |
Date: | Sun, 21 Sep 2008 13:42:30 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.0.1) Gecko/2008070400 SUSE/3.0.1-0.1 Firefox/3.0.1 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |