Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
You choose
#16
At this point, I just use _TRUE and _FALSE which eliminates 2 lines of code and any guesswork. 

But if we have to define it, I would opt for explicit (#1) 
Const False=0 : Const True=-1

because with 
Const TRUE = Not FALSE

a couple of times I needed to know the value, and I couldn't recall if it was -1 or +1, 
and had to resort to doing a PRINT str$(TRUE) to be reminded, which was annoying.

Really, I am totally happy with _TRUE and _FALSE being natively supported now, so we don't have to think about this stuff!
Reply


Messages In This Thread
You choose - by eoredson - 04-08-2025, 01:08 AM
RE: You choose - by RhoSigma - 04-08-2025, 01:15 AM
RE: You choose - by eoredson - 04-08-2025, 01:31 AM
RE: You choose - by Pete - 04-08-2025, 01:42 AM
RE: You choose - by eoredson - 04-08-2025, 01:53 AM
RE: You choose - by eoredson - 04-08-2025, 02:48 AM
RE: You choose - by Pete - 04-08-2025, 03:31 AM
RE: You choose - by SMcNeill - 04-08-2025, 03:33 AM
RE: You choose - by Pete - 04-08-2025, 03:39 AM
RE: You choose - by SMcNeill - 04-08-2025, 04:14 AM
RE: You choose - by PhilOfPerth - 04-08-2025, 04:55 AM
RE: You choose - by Ikerkaz - 04-08-2025, 09:15 AM
RE: You choose - by bplus - 04-08-2025, 11:44 AM
RE: You choose - by eoredson - 04-09-2025, 12:53 AM
RE: You choose - by Pete - 04-09-2025, 01:04 AM
RE: You choose - by madscijr - 04-09-2025, 04:14 PM
RE: You choose - by bplus - 04-09-2025, 04:44 PM
RE: You choose - by madscijr - 04-09-2025, 04:51 PM
RE: You choose - by bplus - 04-09-2025, 06:56 PM
RE: You choose - by madscijr - 04-09-2025, 07:11 PM
RE: You choose - by Pete - 04-09-2025, 07:43 PM
RE: You choose - by madscijr - 04-09-2025, 09:09 PM



Users browsing this thread: 2 Guest(s)