[Gambas-user] static const?

Les Hardy les at ...2337...
Thu Apr 15 20:12:35 CEST 2010


Charlie Reinl wrote:
> Am Donnerstag, den 15.04.2010, 19:28 +0200 schrieb Doriano Blengino:
>   
>> Jussi Lahtinen ha scritto:
>>     
>>>> Back to gambas - I don't know if the documentation says anything about
>>>> short-circuit and things like that. May be we can assume it as a
>>>> standard, that modern languages always do short-circuit, but the concept
>>>> remains.
>>>>     
>>>>         
>>>  Gambas doesn't have short-circuits, you have to write like this:
>>>  IF a=1 AND IF b=2 THEN
>>>
>>>   
>>>       
>> Ah! Thanks. So, a statement like this:
>>
>>     if i<tabstrip1.count and tabstrip1[i].caption=""
>>
>> can fail, if I understand well. Perhaps I must check a few lines of code...
>>
>> Regards,
>> Doriano
>>     
>
> Salut,
>
> I'v never done it like that (IF a=1 AND IF b=2 THEN), are you sure ? 
>   
Yes, It is clearly there in the manual.

*IF* _Expression_ [ { *AND IF* | *OR IF* } _Expression_ ... ] [ *THEN* ]
  ...
[ *ELSE IF* _Expression_ [ { *AND IF* | *OR IF* } _Expression_ ... ] [ *THEN* ]
  ... ]
[ *ELSE*
  ... ]
*ENDIF*






More information about the User mailing list