[FAQ] [V4Rb 2] VLink.FindLinked question
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Jul 20 00:48:09 CDT 2005
On 7/20/05 12:29 AM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
Hi Charles,
> Why does VLink.FindLinked return nil if no matches are found, instead
> of a VArraySet with 0 elements? It certainly seems to me that the
> better way would be to always return a non-nil object.
This was made on C++ level, and repeated in all plugins.
Reason -- speed, less RAM resources, ...
Why spend time and RAM
to create empty array,
later to destroy it
on call of function get_Count() to see that it is empty
?
Instead we have simple
res = field.find
if( res = nil )
return // or else you want
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list