Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BAM "dev" and "prod" directives
#1
A program can be at one of two promotion levels: development or production.

When at the development level, there are two versions of the program available: development and production.

When at the production level, there is only the one version of the program: production.  Until edited, at which point it is back at the development level.

That aside:

We may want a program to look/behave differently depending on what version we are running/exporting.
This is where the "dev" and "prod" preprocessor directives come in.

Sample code:



Code: (Select All)
<<dev """
greet$ = "howdy buds, this is the development version of the program"
""">>

<<prod """
greet$ = "good day ladies and gentlement, this is the production version of the program"
""">>

print greet$

In the sample code above, greet$ will have one value when we are running the development version, and a different value when running the production version.
Reply


Messages In This Thread
BAM "dev" and "prod" directives - by CharlieJV - 11-21-2022, 11:48 PM
RE: BAM "dev" and "prod" directives - by SMcNeill - 11-22-2022, 04:11 AM
RE: BAM "dev" and "prod" directives - by SMcNeill - 11-22-2022, 05:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  BAM Draw CharlieJV 9 1,998 11-07-2023, 10:27 PM
Last Post: James D Jarvis
  One program, different behaviour (DEV vs PROD) CharlieJV 1 673 07-30-2023, 04:25 AM
Last Post: CharlieJV
  BAM: New version CharlieJV 0 492 06-29-2023, 02:22 AM
Last Post: CharlieJV
  BAM App Personalizer (a GUI to personalize BAM programs) CharlieJV 0 478 01-06-2023, 03:48 AM
Last Post: CharlieJV
  BAM FIX: disappearing BAM menu bar on mobile web browsers CharlieJV 0 474 12-11-2022, 07:00 PM
Last Post: CharlieJV

Forum Jump:


Users browsing this thread: 1 Guest(s)