swzoh wrote:

>Actually they are different. Try an inexistent element, then they'll 
>produce different results.
>

Thanks Sean, you're right, they do.  I'm confused tho...

local v = Vec.CreateFromWords("about bad cat dog", 4)
win.debug("vec.binsearch: ", vec.binsearch(v, "green"))
win.debug("vec.binindex: ", vec.binindex(v, "green"))

vec.binsearch() returns -1 consistently when element does not exist.

But what is vec.binindex() doing?  For the above, it returns 3.  Change 
"green" to "boo" and it returns 1.

Why is that?

Thanks again,
Karen


------------------------ Yahoo! Groups Sponsor --------------------~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to