Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

method call overloading: test 1

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


perl.p5p at rjbs

May 16, 2008, 6:06 AM

Post #1 of 1 (59 views)
Permalink
method call overloading: test 1

Attached is a very simple test for overloaded method invocation. It's a simple
classless scheme, with tests for both the underlying call and then how it
should work if ->method can be overloaded.

I called the overload type 'invoke_method' but I am not too concerned with
what it's called, as long as it works!

In the data block of the code is an example of what the code could look like if
written natively, instead of having the calling abstracted out.

--
rjbs
Attachments: method.t (2.93 KB)

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.