# New Ticket Created by  Sandy Bultena 
# Please include the string:  [perl #43424]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=43424 >





The documentation in pdd15_objects.html referring to callmethod and 
callmethodcc state that only the method name is required as a parameter, 
however the tests (in objects_meth.t) appear to indicate that the 1st parameter 
is the class (or object??) and then the the second parameter is the name of the 
method.Documentation is:callmethod
  callmethod  callmethod $S1

Call a method. If the method name is provided in $S1, we find the
PMC for the named method and put it in the sub/method slot. If no name
is provided we assume that all the calling conventions have already
been set up and the method PMC is already in the proper place.

callmethodcc
  callmethodcc  callmethodcc $S1

Make a method call, automatically generating a return continuation.
If a method name is passed in we look up the method PMC for the object
and put it in the method slot. If a method name isn't provided then we
assume that things are already properly set up.

Test Case Is:pasm_error_output_like( <<'CODE', <<'OUTPUT', "callmethod (STR) - 
unknown method" );    newpdd15class P2, "Foo"    set S1, "nada"    callmethod 
P2, S1, P1    print "nope\n"    endCODE/Method 'nada' not 
found/OUTPUTpasm_error_output_like( <<'CODE', <<'OUTPUT', "callmethodcc - 
unknown method" );    newpdd15class P2, "Foo"    set S0, "nada"    callmethodcc 
P2, S0    print "nope\n"    endCODE/Method 'nada' not found/OUTPUT
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

Reply via email to