This probably isn't specifically a D only question as I've seen this in C++ too, but does it make any kind of difference where an attribute is placed when writing a function? example class C { immutable void foo() { //code } } vs class D { void foo() immutable { //code } }