Inner classes - More expressiveness needed

Derek Parnell derek at psych.ward
Thu Oct 25 15:06:36 PDT 2007


On Thu, 25 Oct 2007 08:09:34 -0700, Gregor Richards wrote:

> I hate when people say that "static" is overused, when they really just 
> don't know what static means.
> 
> There are only two meanings for "static" in D:
> 
>   * Static conditionals.
>   * Static declarations.
> 
> For static declarations, the meaning of static is 100% consistent. It 
> means that the given declaration, though accessed by its semantic scope, 
> exists in the global context. Implementation-wise, this means that it 
> has no context pointer whatsoever. This is far more consistent than C, 
> C++, Java, ...
> 
>   - Gregor Richards

How does the module constructor fit into this classification? 

module xyz;
static this()
{
 . . .
}


-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell



More information about the Digitalmars-d mailing list