Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
You choose
#10
Looking at the original post, I'd have to say:

1) I'm with Rho.  Just use _True and _False.  They're built in the language now.

2) If one has to define a value themselves, then I prefer either of the first two methods.  In basic True is always NOT FALSE, but FALSE isn't always NOT TRUE.

FALSE is *only* NOT TRUE when True is -1, but BASIC considers any non-zero value to be True.

2 is True.  NOT 2 is.. -3.  Which is also True.

0 is False.  That's the only guarantee BASIC makes.  Saying True = NOT FALSE will always be correct.  Thinking FALSE = NOT TRUE is only correct in the limited scope of *IF TRUE = -1*.  When dealing with CONST, there's nothing wrong with writing it as your third example does, with the exception that it reinforces the concept that False = Not True, which isn't a true statement all the time.

If one is going that route, then they could probably just use FALSE = _NEGATE True.  Then that statement would always be valid and correct.

2 = True.  _NEGATE 2 = 0.  Which is, indeed, False.

A subtle difference, but one that I think if someone learned to adapt to, it might save them some issues later down the road.  NOT TRUE can still sometimes be TRUE, but _NEGATE TRUE will always be FALSE.
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: 1 Guest(s)