realbasic-nug
[Top] [All Lists]

Re: For/next and array ubounds: optimising performance

To: "REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: For/next and array ubounds: optimising performance
From: Daniel Stenning <d0stenning at msn dot com>
Date: Thu, 17 May 2007 17:16:32 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AceYnrtr+bkq/QSREdyC5AAKldQmeg==
Thread-topic: For/next and array ubounds: optimising performance
Why would anyone want to write that ??

Any syntax can be misused. You have to assume that the programmer knows when
and when not to use such syntax.

On 17/5/07 17:08, "Norman Palardy" <npalardy at great-white-software dot com>
wrote:

> The other issue, if you tried my little loop, is that the array
> ubound CAN change in the course of the loop and so using it like
> 
> foo.append 1
> 
> for i as Integer = 0 to ubound(foo)
> foo.append 1
> next

Regards,

Dan



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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>