Custom accessor compose via traits

2015-07-30 Thread David Warring
The example below is combines traits (S14) Lvalue subs (S06) to create a base class SimpleTiedHash that ties Attributes to the hash using the 'Entry' accessor. PDFCatalog is an example instance class. This mostly works well. But SimpleTiedHash currently has a hacky way of overriding the

Re: Custom accessor compose via traits

2015-07-30 Thread David Warring
Just to give a bit more background. If you've ever looked at a PDF, it's mostly constructed of fairly conventional data structures such as arrays, dictionaries, names (hash keys), byte-stings and numbers. These mostly map reasonably well to Perl 6's built in types. However, these are then