:anon flag bug?

0 views
Skip to first unread message

Klaas-Jan Stol

unread,
Feb 18, 2007, 11:46:40 AM2/18/07
to Perl 6 Internals
hi,

I was working on a test for addmethod op (ticket #39196: [TODO] tests -
need to test addmethod) and
tried this:

.sub main :main

# this works:
hello()

# while this does not:
$P0 = find_name "hello"
$P0()
.end


.sub hello :anon
print "Hello world!\n"
.end

My question is, should the call "hello()" not fail as well? hello is an
anonymous sub, so it should not be found when calling hello().

Is this a bug?

regards,
kjs

Reply all
Reply to author
Forward
0 new messages