> 
> Capacity is not length, this is clear. But:
> local test = vec.create(10, 1)
> vec.grow(test, 1)
> win.debug(vec.capacity(test))
> gets me "11" with my current vec.dll. Isn't this correct?
>

The bug was that grow used the growth factor passed in vec.create, 
not the one explicitly  stated in vec.grow.  Since above works.  But 
vec.createfromlines in script was specified with no auto growth 
allowed.

The simplest approach is actually to specify a growth of (say) 20 in 
vec.creatfromlines, and let PowerPro handle the growing. Vec should 
grow automatically, as long as you attempt to set element one beyond 
current length.



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
---------------------------------------------------------------------~->

****  EDIT YOUR POSTINGS !!!! ****
Please remove as much as possible from original messages before replying to them.
________________________________________________ 
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