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



Users browsing this thread: 1 Guest(s)