Damian Conway <[EMAIL PROTECTED]> writes:

> Piers asked:
>
>> So, is there any chance that we'll be able to do:
>> 
>>   class ical {
>>     use object_name '$self';
>> 
>>     method ical {
>>       given $self.ology {
>>         ... { $self.ish }
>>       }
>>     }
>>   }
>
> Of course, if you're not using explicit parameters, you can always write:
>
>       method ical {
>         given @_[0].ology {
>           ... { @_[0].ish }
>         }
>       }
>
>
> It would be nice to have a cleaner way to do that, though.
> So I'd like to see something like your pragma. However, I'd 
> probably make it more like:
>
>      use invocant 'self';

*Much* better name. You see, that's why you're the mad genius and I'm
just the lowly lab assistant. Marthter.

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to