Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Absolute need of goto 4 correct functioning of loop routine.
#25
Hey Mac...nice test. This little bit of code is just about the only place I've used a goto in a LONG time. I revisited a prime finder I made way back about 2 yrs ago while learning c++...wanted to see speed difference compared to QB...and there was that ugly goto...lingering.

Not particularly interesting, but it's a good way to eat clocks, and thus compare compiler efficiency, and let me get a handle on the impact of juggling efficiency vs code readability.

In c++, I've found that if you use good algorithms and clean code, and an optimizing compiler, the little tweaks that I'm often tempted to test in QB make no significant difference.

Cheers, and thanks for the input.

Joe
Reply


Messages In This Thread
Need more - by Mac - 02-03-2005, 12:50 AM
Mea culpa - by Mac - 02-03-2005, 01:57 AM
Using goto - by Mango - 02-12-2005, 04:45 PM
Not required though - by Mac - 02-12-2005, 07:55 PM
Got UnLazy - by Mac - 02-12-2005, 11:12 PM
Absolute need of goto 4 correct functioning of loop routine. - by Mango - 02-13-2005, 08:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)