| 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> |
| Previous by Date: | FR: Change UBound from a member function to instead access the internal array counter value directly (read-only), Daniel Stenning |
|---|---|
| Next by Date: | Re: For/next and array ubounds: optimising performance, Michael Diehr |
| Previous by Thread: | Re: For/next and array ubounds: optimising performance, Norman Palardy |
| Next by Thread: | Re: For/next and array ubounds: optimising performance, Norman Palardy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |