RE: Wrap an attribute’s ^get_value method in TWEAK

2019-09-08 Thread Mark Devine
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

Re: Wrap an attribute’s ^get_value method in TWEAK

2019-09-08 Thread Vadim Belman
DEFG')).SerialNumber; > > > I’ve twisted myself into a pretzel. I couldn’t even find where a role gets > ‘$’, but I saw it in JSTOWE’s code so I mimicked. > > I need a little more broad-based help on what goes where and when. > > Thanks, > > Mark > > From: Va

RE: Wrap an attribute’s ^get_value method in TWEAK

2019-09-08 Thread Mark Devine
retzel. I couldn’t even find where a role gets ‘$’, but I saw it in JSTOWE’s code so I mimicked. I need a little more broad-based help on what goes where and when. Thanks, Mark From: Vadim Belman Sent: Sunday, September 8, 2019 14:57 To: Mark Devine Cc: perl6-users Subject: Re: Wrap an attribute’s

Re: Wrap an attribute’s ^get_value method in TWEAK

2019-09-08 Thread Vadim Belman
Hi Mark, get_value won't give you what you expect. It's use is narrowly limited to trait 'is handles' and method .perl. Besides, are you sure all of your attributes will be considered as belonging to XML? I mean, won't there be need for utility attributes serving exclusively internal needs of