Re: Signature matching, manual intervention.

David Abrahams <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <[email protected]>
on Wed Aug 08 2007, "Roman Yakovenko" <roman.yakovenko-AT-gmail.com> wrote:

> On 8/8/07, David Abrahams <[email protected]> wrote:
>>
>> on Wed Aug 08 2007, "Roman Yakovenko" <roman.yakovenko-AT-gmail.com> wrote:
>>
>> > I think I don't completely understand you. Do you mean from the
>> > "target" language ( Python or Lua for example )?
>> >
>> > If so, than in my opinion the answer is: yes.
>> > Use case:
>> >
>> > void do_smth( bool )
>> > void do_smth( int )
>> >
>> > Today Boost.Python selects what function to call based on registration
>> > order.
>>
>> We plan to do something smarter for langbinding.
>
> :-), what about second use-case? 

Which use case is that?

> Will you provide in exception information why the library "refuses"
> to call a function from a set of overload ones?

Doing any better than we're doing now would at best be really, really
hard.  No C++ compiler does better than, "actual arguments <argument
types> don't match any of <list of overloads>."  I think there's a
good reason for that.

If you can come up with an algorithm that gives better information
that doesn't mislead as often as it enlightens, I'd be interested.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

The Astoria Seminar ==> http://www.astoriaseminar.com


-------------------------------------------------------------------------
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.