ETSI's Bug Tracker - Ext Pack: Object-oriented features (ES 203 790)
View Issue Details
0007957Ext Pack: Object-oriented features (ES 203 790)[All Projects] Generalpublic21-05-2020 10:1027-12-2020 13:24
Kristóf Szabados 
Jens Grabowski 
normalminorhave not tried
closedfixed 
V1.2.1 (published 2020-05) 
V1.3.1 (ongoing) 
0007957: add equals function to the object
When starting to use Object Oriented approaches to write a common library ( like the ones present in C++ and Java) it became apparrent, that the built in object class should have an equals function.
"equals(in object Other)"

Without it becomes necessary to create a common base class (comparable) from which all other classes must be derived from, in order to use common data structures and algorithms.
If this function could be added to the object class, an unnecessary layer of abstraction would be elimintaed.

Also would make it possible (as in C++ and Java) to compare objects based on the internal meaning, rather then their object instances.
No tags attached.
docx CR_7957.docx (134,667) 12-08-2020 11:50
http://oldforge.etsi.org/mantis/file_download.php?file_id=3921&type=bug
docx CR_7957-2.docx (135,905) 12-08-2020 13:55
http://oldforge.etsi.org/mantis/file_download.php?file_id=3924&type=bug
docx CR_7957-3.docx (152,677) 13-08-2020 09:46
http://oldforge.etsi.org/mantis/file_download.php?file_id=3931&type=bug
docx CR_7957-4.docx (138,091) 13-08-2020 10:06
http://oldforge.etsi.org/mantis/file_download.php?file_id=3932&type=bug
Issue History
21-05-2020 10:10Kristóf SzabadosNew Issue
10-08-2020 10:31Jens GrabowskiAssigned To => Kristóf Szabados
10-08-2020 10:31Jens GrabowskiStatusnew => assigned
12-08-2020 11:50Kristóf SzabadosFile Added: CR_7957.docx
12-08-2020 11:51Kristóf SzabadosAssigned ToKristóf Szabados => Jacob Wieland - Spirent
12-08-2020 13:04Jacob Wieland - SpirentStatusassigned => confirmed
12-08-2020 13:38Jacob Wieland - SpirentFile Added: CR_7957-2.docx
12-08-2020 13:55Jacob Wieland - SpirentFile Deleted: CR_7957-2.docx
12-08-2020 13:55Jacob Wieland - SpirentFile Added: CR_7957-2.docx
12-08-2020 13:56Jacob Wieland - SpirentNote Added: 0015710
12-08-2020 13:56Jacob Wieland - SpirentStatusconfirmed => new
12-08-2020 13:57Jacob Wieland - SpirentAssigned ToJacob Wieland - Spirent => Tomas Urban
12-08-2020 13:57Jacob Wieland - SpirentStatusnew => confirmed
13-08-2020 09:35Tomas UrbanFile Added: CR_7957-3.docx
13-08-2020 09:42Tomas UrbanFile Deleted: CR_7957-3.docx
13-08-2020 09:46Tomas UrbanFile Added: CR_7957-3.docx
13-08-2020 09:51Tomas UrbanNote Added: 0015721
13-08-2020 09:51Tomas UrbanAssigned ToTomas Urban => Jacob Wieland - Spirent
13-08-2020 09:51Tomas UrbanNote Edited: 0015721bug_revision_view_page.php?bugnote_id=15721#r526
13-08-2020 10:06Jacob Wieland - SpirentFile Added: CR_7957-4.docx
13-08-2020 10:07Jacob Wieland - SpirentNote Added: 0015722
13-08-2020 10:07Jacob Wieland - SpirentStatusconfirmed => resolved
13-08-2020 10:07Jacob Wieland - SpirentResolutionopen => fixed
13-08-2020 10:07Jacob Wieland - SpirentAssigned ToJacob Wieland - Spirent => Jens Grabowski
17-12-2020 16:21Gyorgy RethyProduct Version => V1.2.1 (published 2020-05)
17-12-2020 16:21Gyorgy RethyTarget Version => V1.3.1 (ongoing)
27-12-2020 13:24Jens GrabowskiStatusresolved => closed

Notes
(0015710)
Jacob Wieland - Spirent   
12-08-2020 13:56   
I have fixed the example so that it actually does what one would expect from a comparison between rectangles and squares, please review
(0015721)
Tomas Urban   
13-08-2020 09:51   
I optimized it a little bit further:
1. The comparison to this is the first type of check, because it is the fastest one
2. Rectangle has always 4 sides, so there's no need to check the number of sides nor have a function returning it in this example.
3. I replaced the function for returning a length of a rectangle side with functions returning its width and height which are the properties one would usually expect from a rectangle object.

Please check.

(0015722)
Jacob Wieland - Spirent   
13-08-2020 10:07   
changes ok, deleted erroneous comment