status


yes/no of a command

command
compile
edit
var
write

status

status

        Returns the program anyflo version.

Exemple: $status prints:
INTERPRETER X32 Michel BRET for the interpreter
ANYFLO X32 Michel BRET 01 January 2019 (19.01) for anyflo
with the date.

status(v)

Returns:
        0 if v==NIL
        1 if v is a string
        2 if v is a long
        3 if v is a float
        4 if vi is an hybride
Options:
status: prints the internal description of the constant v

Examples:
$status(NIL); prints 0
$status("a"); prints 1

$status status("ab"); prints:
dim = 5 tye = CHAR np = 2 dimp = 2
1

$status(1,2,3); prints 3

status com

status com

        Returns the command com status:
        0: no com is active.
        1: yes com is active.
        -1: yes com and no com are prohibited, it is not recommended to change the status in this case.

status com(s)

        Changes this status.

status compile

status compile

        Returns the compile status

status compile(s)

        Changes this status.
Notes:
status compile(0); is equivalent to no compile;
status compile(1); is equivalent to yes compile; (default).
status compile(2); compiles without complete parenthesizings.
Can be used in case of error in parenthesis, to force a particular bracketing.

status edit

status edit

        Returns the edit status.

status edit(s)

        Changes this status:
s=0: no edition
s=1: edition
s=2: more edition

status var

status var("nnn")

Returns:
        0 if x is NIL
        1 if x is a string
        2 if x is a long
        3 if x is a float
        4 if x is an hybride

status var("nnn")edit

Displays the internal description of variable nnn.

status write

status write

        Returns the file write protection.

status write(s)

        Changes this protection:
s=0: equivalent to no write, writing is protected (confirmation if the file already exists).
s=1: equivalent to yes write, writing is not protected (if the file already exists, it is overwritten).
s=2: the file is not written if it already exists.