No subject
Thu Oct 26 19:20:09 CEST 2017
Kind/type Sign/Signature
Conditional as =3D, IS , NOT=20
Relational as <, >, =3D, <>, =3D> an <=3D
Arithmetic as +, -, *, /, ^
Logical as AND, OR, NOT, XOR, (and the shift plus rotate)
The first two has as result true/false
The last two has as result a nummerical value.
Also the last two can be converted to Boolean true/false
by using "FALSE" if value is 0 and else it is "TRUE".
It is not invalid to name each of those four "expresion" but note
the difference between them.
Like car, boot, train as transport but transport is not car if used on sea.
In real here is "expresion" equal to "(expresion kind expresion)"
Shorted to "E" equal to "(E K E)".
For every "E" you be able to use then second "(E K E)" as replacement
and the ( and ) tell you the inner must be first evaluated.
For every K you can use one of the types C|R|A|L by using the Sign for it.
In the background however the difference of the kinds determines how
the result must be obtained by the interpreter/compiler.
For easynes in manuals they are mostly written as "expresion" as PB does.
By the way the automatic conversions of the expresion to the kind of=20
expresion in need it is easy to write "expresion" too.
Not wrong but also not clear what form to use as "expresion".
Gambas is in this way also clever to do auto-conversion.
So using *expresion* as PB does is not incorrect(correct) for Gambas too.
The suggestion made by Eilert about layout is IMHO a good one.
---
Ron
More information about the User
mailing list