On Jan 26, 2007, at 10:02 AM, Daniel Stenning wrote:

And since my discovering that RB now can set object references ByRef that is
the way I will be getting around the if/elseif problem too.

ByRef was one of my early "surprises" back in the 5.5 days. Boy was I happy because I'd been previously creating globally accessible elements and modifying them in my funcs. You want to talk about code that was tough to maintain ...

However it has to be said that this involves either rewriting the get() methods/functions or writing an extra wrapper function. In some situations
( for example when using Declare  functions ) one might not be able to
rewrite the get(). And in performance sensitive situations ( for example where the code is being repeated thousands of times ) the overhead of the
extra wrapper function call could be an issue.

Even in the "thousands" realm, a wrapper shouldn't cause much overhead unless you're really doing something in the wrapper. But, you'd probably be doing that extra work in the handling of the declare's returned value anyway...

Having said all that I'll just have to put up my hands and say "you win, its
a fair cop guvnor" or "ok constable - I'll come quietly"  ;)

But, but, but, we just got our rubber hoses ready ... darn. Ah well, there'll always be a next time [evil grin].

Tim
--
Tim Jones
[EMAIL PROTECTED]

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to