[Gambas-user] Bool@(), Byte@()... functions can be the target of an affectation now.

Benoit Minisini benoit.minisini at gambas-basic.org
Sat Oct 8 17:39:34 CEST 2022


Le 08/10/2022 à 17:38, Benoit Minisini a écrit :
> Le 08/10/2022 à 16:50, vuott--- via User a écrit :
>> Hello Benoit,
>> excuse my ignorance, but what does it mean those functions « be the 
>> target of an affectation » ?
>>
>> Regards
>> vuott
>>
> 
> Now you can write:
> 
> Integer@(Pointer) = Value
> 
> It's the POKE instruction for those old enough to remember the BASIC of 
> Amstrad / Commodore / ... of the good old days.
> 
> Regards,
> 

And, more important, the JIT compiler optimizes these instructions by 
doing a direct memory access in unsafe mode.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list