Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using CONST
#11
i have moved more and more away from using const at all.  because of examples like just displayed.

suppose the programmer does needs variable "c" changed.  why bother defining it as constant in the first place?

it's understood why there have to be labels.  such as color names.  instead of hairy long integers.  that in some programs.  could be written as goggly hexadecimal.

in a program that's not even 1000 lines of code.  defining something as constant.  could cause a bug difficult to track down.  it happened to me once.  but with trying to use somebody else's "include" file.
Reply


Messages In This Thread
Using CONST - by Dimster - 08-02-2025, 04:57 PM
RE: Using CONST - by SMcNeill - 08-02-2025, 05:12 PM
RE: Using CONST - by Dimster - 08-03-2025, 03:24 PM
RE: Using CONST - by TempodiBasic - 08-03-2025, 11:14 PM
RE: Using CONST - by Pete - 08-04-2025, 01:03 AM
RE: Using CONST - by SMcNeill - 08-04-2025, 02:15 AM
RE: Using CONST - by Pete - 08-04-2025, 03:33 AM
RE: Using CONST - by SMcNeill - 08-04-2025, 05:35 AM
RE: Using CONST - by Kernelpanic - 08-04-2025, 04:00 PM
RE: Using CONST - by SMcNeill - 08-04-2025, 06:50 PM
RE: Using CONST - by Pete - 08-04-2025, 05:02 PM
RE: Using CONST - by hsiangch_ong - 08-04-2025, 05:09 PM
RE: Using CONST - by Pete - 08-04-2025, 05:15 PM
RE: Using CONST - by Kernelpanic - 08-12-2025, 05:36 PM
RE: Using CONST - by SMcNeill - 08-12-2025, 06:10 PM
RE: Using CONST - by Kernelpanic - 08-12-2025, 07:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using CONST & _RGB used together seem to error... Dav 12 680 12-12-2025, 12:29 AM
Last Post: Dav

Forum Jump:


Users browsing this thread: 1 Guest(s)