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 February 2014 (15.2) for anyflo
with the date.

status(v)

Displays the internal description of the constant v and returns:
        0 if v==NIL
        1 if v is a string
        2 if vis a long
        3 if v is a float
        4 if vi is an hybride

Examples:
status(NIL); prints:
dim = 4 type = NIL np = 0 dimp = 1
0

$status("ab"); prints:
dim = 5 tye = CHAR np = 1 dimp = 2
(97 a)(98 b)(0)
1

$status(1,2,3); prints:
dim = 7 tye = FLOAT np = 3 dimp = 1
1.0 2.0 3.0
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")

Displays the internal description of variable nnn and 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 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.