Easy for you to say... (haha)
Nice! Many thanks.
Mark
From: Vadim Belman
Sent: Sunday, September 8, 2019 21:32
To: Mark Devine
Cc: perl6-users
Subject: Re: Wrap an attribute’s ^get_value method in TWEAK
Here is a quickly hacked together example:
multi trait_mod: (Attribute:D $a
s? If
> so, then the best solution is to create a trait for an attribute and have it
> like:
>
> has $.SerialNumber is xmlattr;
>
> The trait would then install an accessor which would do what you need.
>
> Best regards,
> Vadim Belman
>
>
> On Sep 8,
Vadim Belman
On Sep 8, 2019, at 12:41 PM, Mark Devine
mailto:m...@markdevine.com>> wrote:
Perl6 Community,
How do I properly wrap an attribute’s ^get_value method in TWEAK? If a
condition exists, I’d like to wrap all (:local) attributes so that they can do
some extra work.
The modu
wrote:
>
> Perl6 Community,
>
> How do I properly wrap an attribute’s ^get_value method in TWEAK? If a
> condition exists, I’d like to wrap all (:local) attributes so that they can
> do some extra work.
>
> The module that I’m working on has classes/attributes for h
Perl6 Community,
How do I properly wrap an attribute’s ^get_value method in TWEAK? If a
condition exists, I’d like to wrap all (:local) attributes so that they can do
some extra work.
The module that I’m working on has classes/attributes for hundreds of fields in
dozens of different, big XML