[Gambas-user] New syntactic sugar to define a property based on a global variable

Benoît Minisini g4mba5 at gmail.com
Thu Aug 22 15:28:16 CEST 2019


Le 22/08/2019 à 15:22, Christof Thalhofer a écrit :
> 
> Thank you for the explanation. It's also great because it makes the code
> more compact and better readable.
> 
> As I always use a lot of properties, this is ultra-ultra-great! ;-)
> 
> It's just the compiler, right? If this code is compiled it can be
> executed by an older interpreter? Say ... Gambas 3.9?
> 

Yes. The compiler generates the needed bytecode.

It would have been faster to let the interpreter handle that special 
case (property = variable), but it would have break backward-compatibility.

-- 
Benoît Minisini


More information about the User mailing list