Dnia 08-12-2009 o 20:09:10 Tomek Sowiński <[email protected]> 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
}