Static member functions

Tomek Sowiński just at ask.me
Tue Dec 8 11:17:11 PST 2009


Dnia 08-12-2009 o 20:09:10 Tomek Sowiński <just at ask.me> napisał(a):

> I think immutable static member functions don't make sense and rightly  
> so. On functions immutable is about "this" and there's no "this".  
> Currently everything inside an immutable struct/class is tagged with  
> "immutable". I say, tag everything but static functions. Let immutable  
> types define them like anyone else.
>
>
> Tomek

For clarity, I'm not commenting any of Michal's examples, I'm talking  
about this:

immutable struct Strukt
{
     static void funkcja() { }  // now doesn't compile
}



More information about the Digitalmars-d mailing list