On Mon, 1 Aug 2022, Skybuck Flying via fpc-pascal wrote:
}
{$mode objfpc}{$H+}
You need additionally a modeswitch for advanced records, or properties in
records will not work:
{$modeswitch advancedrecords}
// UNION example
case integer of
0 : ( m
program TestProgram3;
{
Test program to illustrate the 'union' followed by property problem in Delphi
language and Free Pascal Language
version 0.01 created on 1 august 2022 by Skybuck Flying
There is a problem with "unions" in Delphi language:
When a property follows a "union" declaration it