[Lazarus] Masks: ConstructLegacy

Bart bartjunk64 at gmail.com
Wed Oct 27 17:41:17 CEST 2021

On Wed, Oct 27, 2021 at 2:09 PM Juha Manninen via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>> Wouldn't is be a bit more logical to exclude mocEscapeChar form the
>> MaskOpCodesDefaultAllowed constant, since we'ld like to have the
>> default behaviour as compatible as possible?
> That is fine with me. The Create constructors would then behave like CreateLegacy now.

Yes, that sort of was the objective.

> The extended syntax would have another constructor.

Not really sure what you mean by that.
The "default" constructor is the one with the TMaskOpcodes
(/TWindowsQuirks) parameters.

To be even more backwards compatible, mocRange should be disabled as well.
I'm a bit reluctant to do so, as having ranges is quite an improvement
over the old implementation (which had only sets).
Possible problem is the '-' inside a range: this would be no problem
in old code, but can raise exceptions in the new code.


More information about the lazarus mailing list