const/immutable member functions
bearophile
bearophileHUGS at lycos.com
Mon Jan 24 15:38:24 PST 2011
foobar:
> This "problem" happens because D belongs to the C-family of languages which puts the return type _before_ the function name.
Of course C++ has everything :-) See the trailing-return-type feature of C++0x:
http://en.wikipedia.org/wiki/C%2B%2B0x#Alternative_function_syntax
http://stackoverflow.com/questions/4523617/omit-return-type-in-c0x
Bye,
bearophile
More information about the Digitalmars-d
mailing list