Manuscript (Case [Issue]22671) _Inbox - IdentitySet>>asSet returns an IdentitySet instance instead of Set

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22671) _Inbox - IdentitySet>>asSet returns an IdentitySet instance instead of Set

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  _Inbox: Not Spam  •  You are subscribed to this case
I do not immediately see that there is a problem.

In general #asXX methods do not guarantee a copy (self is returned in almost all cases when the message is received by a compatible class).

A subclass is (or should be) compatible with its superclass, hence it is not necessary to return a Set or a String, a subtype is OK too.

Consider

'100 €' asString.

which returns a WideString, not a String (which does not even exist as concrete type).

Why exactly is #asSet returning an IdentitySet a problem for you ?
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker