[Gambas-user] Is the &= efficient?

Benoît Minisini g4mba5 at gmail.com
Tue Mar 5 22:48:59 CET 2019


Le 05/03/2019 à 22:03, Cedron Dawg a écrit :
> A little thinking helps.  I'm going with alloc/memory/free, because I have an idea how much space I will need.
> 
> Having +=, -=, *=, etc is a huge plus for me compared to other BASICs.
> 
> Open question (also asked at forum.gambas.one) to all.
> 
> Do you prefer
> 
> Inc x
> Dec x
> 
> or
> 
> x += 1
> x -= 1
> 
> ?
> 

No difference, it compiles to the same bytecode.

-- 
Benoît Minisini


More information about the User mailing list