<br><br><div class="gmail_quote">2009/11/24 Hans Aberg <span dir="ltr"><<a href="mailto:haberg@math.su.se">haberg@math.su.se</a>></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, 'chuck' 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'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't do it.<br>
<br>Kas.<br></div></div>