[Lazarus] TMask revisited

José Mejuto joshyfun at gmail.com
Sat Oct 23 22:47:59 CEST 2021

El 23/10/2021 a las 22:18, Bart via lazarus escribió:

> Q2: @José: the TMaskOpCode enums are indexed, and there is a gap in
> the index. Is the index necessary for the code to work?
> Is the gap necessary?
> In the Add() method, the enum is cast to a byte, this should also work
> if no indices are used (as long as you do not do mathematical
> operations with the value of that byte).


The value was given just to group some things, originally they were 
constants, in theory values can be removed or changed (unless I forget 
something), they are used as a marker in compiled stream, like a command.


More information about the lazarus mailing list