in reply to Re^5: What's wrong with Perl 6?
in thread What's wrong with Perl 6?
IIRC, naming your method parameters as if they were instance variables accomplishes that trick:
Though pulling out the auto-magic into something you can do directly is interesting.method foo($.name,$.rank,$.pref) { ... } # and then later ... $obj.foo('Scott', 'Vicar', '???'); # sets the instance vars
Check S12 in any case for the definitive answer.
|
|---|