Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiler failure
#6
(05-24-2024, 04:40 PM)gaslouk Wrote:
Code: (Select All)

T = 10
' Compute the bitwise NOT of T
' NOT 10 is -11 in QB64 (bitwise NOT flips the bits)
T = T * NOT T
' T now becomes 10 * -11 = -110
PRINT T
PRINT

T = 10
' Compute the negation of T
T = T * -T
' T now becomes 10 * -10 = -100
PRINT T
END
No comments.
I think this is the solution I was looking for! Thanks. Erik.

It might be a workaround but still begs the question why it causes a compilation error when trying T = T NOT T
Reply


Messages In This Thread
Compiler failure - by eoredson - 05-24-2024, 05:46 AM
RE: Compiler failure - by SMcNeill - 05-24-2024, 07:31 AM
RE: Compiler failure - by gaslouk - 05-24-2024, 11:45 AM
RE: Compiler failure - by gaslouk - 05-24-2024, 04:40 PM
RE: Compiler failure - by eoredson - 05-25-2024, 12:17 AM
RE: Compiler failure - by bplus - 05-24-2024, 07:40 PM
RE: Compiler failure - by hsiangch_ong - 05-25-2024, 01:12 PM
RE: Compiler failure - by SMcNeill - 05-25-2024, 02:07 PM
RE: Compiler failure - by eoredson - 05-29-2024, 03:23 AM



Users browsing this thread: 1 Guest(s)