Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
article on "exotic" logic optimization...
#11
Quote:No.

You can do several things.

1) You can duplicate the result for both statements.
2) You can use GOTO for both statements to goto the result. If one is true, you go to the result and you don't need to check the other statement.
3) You can do the same thing as (2), rewriting the code internally in the compiler, which is what QB *should* do.

like this?

Code:
IF a THEN GOTO true
IF b THEN GOTO true
PRINT "False"
END
true:
PRINT "TRUE"
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#12
yessir
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)