develooper Front page | perl.perl6.compiler | Postings from August 2012

[perl #114426] [BUG] Internal error when parsing 'class ::(some_constant)' in Rakudo

From:
Carl Mäsak
Date:
August 8, 2012 05:40
Subject:
[perl #114426] [BUG] Internal error when parsing 'class ::(some_constant)' in Rakudo
Message ID:
rt-3.6.HEAD-11172-1344429615-1048.114426-82-0@perl.org
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #114426]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114426 >


<masak> TimToady: I think macros should be powerful enough to define
classes with parameterized names. do you agree? how will we do that?
<jnthn> r: constant foo = "lolclass"; class ::(foo) { }; say lolclass
<p6eval> rakudo 34e8d4:
OUTPUT«===SORRY!===␤multi_dispatch_over_lexical_candidates was unable
to find a candidate list␤»
<jnthn> o.O
<jnthn> star: constant foo = "lolclass"; class ::(foo) { }; say lolclass
<p6eval> star 2012.07: OUTPUT«Capture[0xa7c9890]()␤»
<jnthn> Hmm.
<jnthn> That should work.
* jnthn leaves masak to do the honors
<moritz> that... should work? really?
<jnthn> moritz: Did work at one point, even, iirc.
<moritz> I don't remember even seeing that working
* masak submits rakudobug



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About