Static initalization of global variable?

Rick Mann rmann-d-lang at latencyzero.com
Fri Mar 9 14:39:07 PST 2007


Frits van Bommel Wrote:

> Your options:
> ---
> CFStringRef kHIAboutBoxNameKey;
> 
> static this()
> {
> 	kHIAboutBoxNameKey              =	CFSTR("HIAboutBoxName");
> }
> ---

Ah! My bad. I meant to do static this(). Stupid Java habits.

Thanks!


More information about the Digitalmars-d-learn mailing list