Category:M2000 Interpreter: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 55: Line 55:
Print Alfa(5) ' we pass a double type number
Print Alfa(5) ' we pass a double type number
Print Alfa(12121221121.1212@) ' we pass a Decimal type
Print Alfa(12121221121.1212@) ' we pass a Decimal type
\\ M get type from first assingment
\\ M get type from first assignment
M=Alfa(3)
M=Alfa(3)
Print Type$(M) ' Double
Print Type$(M) ' Double
Line 76: Line 76:
\\ We call it
\\ We call it
CheckIt
CheckIt
\\ Now Funtion Alfa and all variables erased.
\\ Now Function Alfa and all variables erased.
\\ We can call it again
\\ We can call it again
CheckIt</lang>
CheckIt</lang>
Line 95: Line 95:
Print a$
Print a$
Let a$=str$(500.12, "")
Let a$=str$(500.12, "")
Rem : a++ ' error can't aply ++ to a string type
Rem : a++ ' error can't apply ++ to a string type
Print type$(a)="String" ' true
Print type$(a)="String" ' true
' Error a=a+a
' Error a=a+a