"Jacob Carlborg" <d...@me.com> wrote in message news:l0jrm7$3199$1...@digitalmars.com... > On 2013-09-09 05:46, Manu wrote: >> Missed the action... >> >> Well it's clear this is not a popular proposal. >> And even to me personally, it's certainly not of critical importance. If >> there was a single thing I'd like to see *DONE* in D, it would be >> temporary/r-value->ref args, without question (really, really annoying >> to work around). > > So what's wrong with this approach, that's already working today: > > class Foo > { > void foo (); > > void foo () > { > > } > } > > void main () > { > auto foo = new Foo; > foo.foo(); > } > > BTW, this feature was implemented because you asked for it. > > -- > /Jacob Carlborg
Whoa, I didn't think of applying that to member functions. This seems like the answer. Put your variables and function prototypes at the top of your class. Done.