type time_s is record
seconds: integer range 0 to 59;
minutes: integer range 0 to 59;
hours: integer range 0 to 23;
end record;
constant what_time: time_s:=(seconds=>0, minutes=>0,hours=>1,others=>0);
^^^^^^^
There is choice "others" and all elements of record are associated by name.
Some compilers accept the constract.
Regards,
Slawek G.
Slawek Grabowski wrote:
Actually they shouldn't. Section 7.3.2.1 states that "... If the choice others is
given as a choice of a record aggregate, it must represent at least one element."
Edwin