Status/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 06/29/2015
Components: Language
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 1
It'd be handy to be able to define what happens when objects are compared, or an element is added to a collection, and that sort of thing:
// eg 1: compareTo() method
if (obj1 > obj2) /
// eg 2: compareTo() method
function comparator(e1, e2){
return e1 <=> e2;
}
// eg 3: add() method
myCollection + newElement; // calls add(), which might internally append the newElement to the collection
// eg 4: toString() method
writeOutput(myObject)
I don't think it would need to be a complete implementation to start with, but it's something to think about.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4013841
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: