Signature matching, manual intervention.

Rene Rivera <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Organization Redshift Software, Inc.
Message-ID <[email protected]>
So I was talking with JW (John W. since there are two Johns I keep 
having to refer to)  and he asked a rather simple question when I was 
mentioning the Luabind signature matching:

   How can you choose a particular overload to call, if you know which 
one you want?

In particular the example he cited was of having two methods overloaded 
on different subclasses of a common class. So my almost immediate answer 
was:

   You can't, since you'll get an error in C++ anyway.

But then I realized that one can, with some clever casting, and function 
pointer. So my question now is:

   Should forcing a call to a specific overload be supported?

And the obvious follow up: How?


-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.