Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-toolchain, 2016-03-17

| Channels | #perl6-toolchain index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
02:25 pnu joined #perl6-toolchain
06:59 domidumont joined #perl6-toolchain
06:59 FROGGS joined #perl6-toolchain
07:04 domidumont joined #perl6-toolchain
11:25 domidumont1 joined #perl6-toolchain
12:54 sufrostico joined #perl6-toolchain
13:08 sufrostico joined #perl6-toolchain
14:12 FROGGS joined #perl6-toolchain
16:21 ugexe does inheritence work different during SETTING? it seems like im getting unexpected inheritance/compose differences from what i get from a golf
16:22 ugexe a little more specifically a named parameter not getting set through the constructor of all the appropriate roles/classes
16:23 ugexe role Foo { has $.foo; multi submethod BUILD(:$!foo) { nextsame; }; }; role Bar { has $.bar; multi submethod BUILD(:$!bar) { nextsame; }; }; class Baz does Foo does Bar { method new($positional, *%_) { self.bless(:foo($positional), |%_); }; }; say Baz.new(1, bar => 2);
16:23 ugexe something like this
16:25 ugexe in SETTING the above needs to have `proto` for each BUILD though, which seems to muck it up
17:10 sufrostico joined #perl6-toolchain
17:12 Kassandry joined #perl6-toolchain
17:33 tony-o joined #perl6-toolchain
17:56 domidumont joined #perl6-toolchain
18:57 nine In the SETTING you don't get protos generated automatically for you. That happens only in user level code which is why few know that multis actually need protos :)
18:59 ugexe yeah i see. are there any other little gotchas like that you know of? or do i just need to hit them as i go...
19:00 perlpilot ugexe: you could write them down for others.  I think those things are mostly just in the collective consciousness of the people who hack on things
19:03 nine ugexe: can't think of anything right now except for that you of course have to keep in mind the order in which core classes are placed in the generated source
19:06 lizmat joined #perl6-toolchain
19:08 FROGGS joined #perl6-toolchain
20:19 lizmat joined #perl6-toolchain
21:45 ugexe https://gist.github.com/ugexe/e09c4af4910d17319216
21:45 ugexe The commit link in the description is rakudo with the old Distribution stuff completely replaced (s/Distribution::Interface/Distribution/ from last time). The gist shows how to invoke the 2 supplied Distribution implementations: Distribution::Hash and Distribution::Path
21:45 ugexe I'm not sure the invocations are ideal though. I was hoping to design it so you invoke with the source of `meta` data as well as the `Storage` type/role to be used (contains method .content) to map any paths in the `meta` to a IO::Handle, but i'm not sure this is it
21:49 ugexe unfortunately `role Foo[::FulfillsInterface] does FulfillsInterface does SomeInterfaceContract { }` doesnt work, hence the BUILDALL bit

| Channels | #perl6-toolchain index | Today | | Search | Google Search | Plain-Text | summary