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 via email to