Post Reply 
Software 2.1.14558 (Beta): First Impressions
04-26-2021, 05:58 PM (This post was last modified: 04-26-2021 07:07 PM by compsystems.)
Post: #5
RE: Software 2.1.14558 (Beta): First Impressions
Ok, the definitions must be outside the main body of the program. They also have to be different variables from the system

1 Real: A,...,Z
2 Complex: Z0,..., Z9
3 List: L0,..., L9
4 Matrix: M0,..., M9
5: Graphics: G0,..., G9


PHP Code:
// define and protect 
// constants
CONST A1 := (e/2);
CONST 
B1 := e;

EXPORT CONSTDEMO()
BEGIN
    LOCAL C1
;
    PRINT();
    
PRINT2D(A1);
    
PRINT2D(B1);
    
    
C1:=QUOTE((e/2));
    
PRINT2D((C1));
    RETURN(
"Done");
END

CONSTDEMO() [ENTER] OK

PHP Code:
CONST A1;
CONST 
B1 := e;

EXPORT CONSTDEMO1()
BEGIN
    
PRINT();
    
A1 := B1/2// Error: Invalid input
    
PRINT2D(A1);
    RETURN(
"Done");
END

CONSTDEMO1() [ENTER] "Error: Invalid input"
the output message has to be improved to "Error: A1 constant"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Software 2.1.14558 (Beta): First Impressions - compsystems - 04-26-2021 05:58 PM



User(s) browsing this thread: 1 Guest(s)