<br><br><div class="gmail_quote">2009/11/24 Hans Aberg <span dir="ltr">&lt;<a href="mailto:haberg@math.su.se">haberg@math.su.se</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For some reason, &#39;chuck&#39; does not instantiate class static constants until there has been an instantiation of the class itself.<br><br></blockquote><div><br>Writing the value to the variable is deemed part of the constructor instead of the instantiation.<br>
You could get around this using a static member function to set all such values, that way you could have static members set to default values without a class instance. <br><br>I&#39;m not completely happy with the current behaviour as two elements of a single line are treated in very different ways without this being intuitively clear. Of course it could be argued that if this bothers us we simply shouldn&#39;t do it.<br>
<br>Kas.<br></div></div>