--- Alex Peters <[EMAIL PROTECTED]> wrote: > I have not considered this because this would involve > loading each alias' script commands into the map, which > would seemingly be a waste of memory since the alias > definitions exist in the script. Also, if the user were to > modify the script, these changes would not be reflected > until the user also rebuilt the map, and because more is > being read into memory and less lines are skipped, this > would be much slower.
Well, sorry if I didn't understand you correctly, but you don't have to store the commands in memory of map (:of course you can do if you want) if you use "[EMAIL PROTECTED]" approach (I think you do). Essentially, the role of map "AliasMap", for example in my "map & vec" version, is the same as that of "AliasLst" in my plain "list" version. You can set the values of the map components to whatever you want, except 0, "" of course, since they didn't play any role: e.g., "aliasmap[alias]=1". > I considered this and this is how I originally checked for > the existance of the auto-completion vector. However, if > VectorName is not equal to zero, then the vector must exist > since the variable is only touched on creation of the > vector, and so my method should prove slightly faster as it > does not require a call to the Vec plugin for what will > only be the same result. I think this is a good idea since VectorName seemed to always return the order in the number of Active Vectors, e.g., "v.3" or something like that (I can't recall the exact form.) > This was added because PowerPro seemed to be ignoring the 1 > in the Vec.CreateFromLines() statement. Are you sure of this? Works fine for vec.createFromWords() and I can't see any reason of diffrent behaviors for the two. I guess that you just checked them after mere creation of the vector. The "Grow" would not take effect until you set the new vector component. E.g., suppose I have a v=vec.createFromWords(aliases,2). 1) After mere creation of "v": vec.Capacity(v) == 50 vec.Length(v) == 50 2) After set a new component v[vec.Length(v)]="new": vec.Capacity(v) == 52 vec.Length(v) == 51 ------------------------ 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/
