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

[perl #114034] Declaring a class with the name of the first part of a multi-joined name makes the multi-joined name unavailable

From:
Moritz Lenz
Date:
July 8, 2012 04:35
Subject:
[perl #114034] Declaring a class with the name of the first part of a multi-joined name makes the multi-joined name unavailable
Message ID:
rt-3.6.HEAD-28836-1341747332-1927.114034-82-0@perl.org
# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #114034]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114034 >


13:29 < moritz> r: my class A::B { }; my class A { method x { say A::B }
}; A.x
13:29 <+p6eval> rakudo 3e0008: OUTPUT«Could not find symbol 'A::&B'␤  in
method x at /tmp/OvsGZroBwS:1␤  in block <anon> at /tmp/OvsGZroBwS:1␤␤»
13:30 < jnthn> That should probably work. Though I suspect the
workaround is...
13:31 < jnthn> r: my class A { ... }; my class A::B { }; my class A {
method x { say A::B } }; A.x
13:31 <+p6eval> rakudo 3e0008: OUTPUT«A::B()␤»



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