[perl6/specs] 91635d: Elaborate on meta-structure of roles.

2015-07-30 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 91635d4f63b87815a9cd7605a8359a8914e1f6b5 https://github.com/perl6/specs/commit/91635d4f63b87815a9cd7605a8359a8914e1f6b5 Author: jnthn Date: 2015-07-30 (Thu, 30 Jul 2015) Changed paths: M S14-roles-an

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 organiz

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 built-in

[perl6/specs] ff7087: Spec index/rindex changes wrt to Index

2015-07-30 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: ff70871e45ea229b570855fe660b56890f6eef58 https://github.com/perl6/specs/commit/ff70871e45ea229b570855fe660b56890f6eef58 Author: Elizabeth Mattijsen Date: 2015-07-29 (Wed, 29 Jul 2015) Changed paths:

Semicolon form of 'class' without 'unit' seen at ...

2015-07-30 Thread Gabor Szabo
I got a lot of the above warning on my code-base, which then goes on and suggests: Please use 'unit class' instead Using unit class indeed silences Rakudo, but I could not find any information on 'unit' at http://doc.perl6.org/ and the http://doc.perl6.org/language/classtut shows class definition

[perl #125715] [BUG] Using exported type symbol as attribute type fails with goofy error

2015-07-30 Thread via RT
# New Ticket Created by Lloyd Fournier # Please include the string: [perl #125715] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125715 > MyMod.pm - class Foo {} #Foo aliased to Bar sub EXPORT(|){ { 'Bar' => Foo } } main