[Gambas-user] Wiki: DO doesn't answer

Patrick JACQUOT patrick.jacquot at ...1387...
Mon Apr 3 10:21:44 CEST 2006


ron wrote:

>On Thursday 30 March 2006 18:21, Benoit Minisini wrote:
>  
>
>>Do it for one structure, and I will tell you if I find it good :-) and if you 
>>can do the same for the other structures.
>>
>>    
>>
>
>First the VB/PB examples
>They tell you clear the while|until can be used only once, after DO or after LOOP.
>This is better then PB.
>The VB 'Remarks' explaining the parts in detail is not so bad.
>PB is misleading you can use the expresion at two places.
>
>About condition and expresion.
>In fact VB is correct with condition.
>
>From history we have different kinds of expresion.
>
>Kind/type	Sign/Signature
>Conditional as =, IS , NOT 
>Relational  as <, >, =, <>, => an <=
>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 
>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
>  
>
Why not use "boolean expression"?





More information about the User mailing list