# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #68572] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68572 >
<masak> rakudo: role Maybe[::T] { role Just[T] {} }; say Maybe[Int].new() <p6eval> rakudo 0d4fe0: OUTPUT«Potential internal error: bindability check may have done more than just binding. [...] <masak> what does that error mean? <jnthn> First off, nesting roles inside roles is probably wrong unless they're lexically scoped... <jnthn> Well, the inner one is... <jnthn> The error is an internals check that I put in to detect certain things going awry. <jnthn> Because it's a lot better than something silently going wrong, and just causing oddness later on that would take ages to unpick and debug. <jnthn> Feel free to file a rakudobug anyway. <jnthn> Since it's in theory something that should never occur. <jnthn> rakudo: role Maybe[::T] { }; say Maybe[Int].new() <p6eval> rakudo 0d4fe0: OUTPUT«()<0xb69cc438>» <jnthn> rakudo: role Maybe[::T] { role Foo { } }; say Maybe[Int].new() <p6eval> rakudo 0d4fe0: OUTPUT«()<0xb69a62f8>» <jnthn> rakudo: role Maybe[::T] { role Foo[T $] { } }; say Maybe[Int].new() <p6eval> rakudo 0d4fe0: OUTPUT«Potential internal error: bindability check may have done more than just binding. [...] <jnthn> heh <jnthn> Anyway, I suspect Rakudo * may well just forbid nesting other packages inside roles. <masak> fair enough. * masak submits rakudobug