Where to place function attributes?

Jeremy DeHaan dehaan.jeremiah at gmail.com
Sun Aug 19 00:57:14 PDT 2012


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
     }
}




More information about the Digitalmars-d-learn mailing list