Ada-Rapporteur-Group / User-Community-Input

Ada User Community Input Working Group - Github Mirror Prototype
26 stars 1 forks source link

Bad example in 6.4 #90

Open CKWG opened 3 months ago

CKWG commented 3 months ago

6.4(20/3) procedure Pair(Left, Right : in Person_Name := new Person(M)); (23/3) Pair; Pair(Left => new Person(F), Right => new Person(M));

According to (24) NOTE, these calls are equivalent, however in the former call, two M are created, in the latter, one F and one M.

BTW: Person is defined in 3.10.1(22), but Gender is undefined - there is no reference to where this is defined as an example. (I understand examples should be complete in the RM.)