ETSI's Bug Tracker - Ext Pack: Object-oriented features (ES 203 790)
View Issue Details
0007920Ext Pack: Object-oriented features (ES 203 790)[All Projects] Generalpublic09-04-2020 09:1228-12-2020 11:09
Kristóf Szabados 
Jens Grabowski 
normalminorhave not tried
closedfixed 
V1.2.1 (published 2020-05) 
V1.3.1 (ongoing) 
0007920: Clarification request: how should equality/inequality work for objects?
According to the currently available version of the OO extension (v1.1.1) the equality/inequality operators can be used with object instances, but only to check if they are null or not.
"An object variable or parameter may be compared with the special value null with the equality and inequality operators or can be assigned the special value null explicitly."

It would be benefitial if objects could be compared.
Also it should be done by their references to see if two object instances are actually the same.

But comparing based on members (like done for record/set and other types) should not work for objects. Since objects of very different types might have the same member fields and function names, but very different operational semantics described within those functions.
No tags attached.
docx CR7920.docx (131,696) 11-08-2020 10:10
http://oldforge.etsi.org/mantis/file_download.php?file_id=3904&type=bug
Issue History
09-04-2020 09:12Kristóf SzabadosNew Issue
14-04-2020 12:31Kristóf SzabadosSummaryClarification request: who should equality/inequality work for objects? => Clarification request: how should equality/inequality work for objects?
28-05-2020 09:12Jacob Wieland - SpirentNote Added: 0015656
10-08-2020 10:26Jens GrabowskiAssigned To => Jacob Wieland - Spirent
10-08-2020 10:26Jens GrabowskiStatusnew => assigned
11-08-2020 10:10Jacob Wieland - SpirentFile Added: CR7920.docx
11-08-2020 10:11Jacob Wieland - SpirentNote Added: 0015676
11-08-2020 10:11Jacob Wieland - SpirentAssigned ToJacob Wieland - Spirent => Tomas Urban
11-08-2020 10:11Jacob Wieland - SpirentStatusassigned => confirmed
11-08-2020 15:27Kristóf SzabadosNote Added: 0015696
13-08-2020 08:51Tomas UrbanNote Added: 0015720
13-08-2020 08:51Tomas UrbanStatusconfirmed => resolved
13-08-2020 08:51Tomas UrbanResolutionopen => fixed
13-08-2020 08:51Tomas UrbanAssigned ToTomas Urban => Jens Grabowski
17-12-2020 16:22Gyorgy RethyProduct Version => V1.2.1 (published 2020-05)
17-12-2020 16:22Gyorgy RethyTarget Version => V1.3.1 (ongoing)
28-12-2020 11:09Jens GrabowskiStatusresolved => closed

Notes
(0015656)
Jacob Wieland - Spirent   
28-05-2020 09:12   
Of course, the intention was that object can be compared via comparing their instances as is usual in object-oriented languages. If that is not yet in the standard, that needs to be added.
(0015676)
Jacob Wieland - Spirent   
11-08-2020 10:11   
added section on comparison operators in the objects section, please review
(0015696)
Kristóf Szabados   
11-08-2020 15:27   
looks good for me.
(0015720)
Tomas Urban   
13-08-2020 08:51   
The proposed solution fixes the issue described in this CR and can be added to the next version of the standard.