Manuscript (Case [Issue]22652) String - collect: over Strings is broken

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

Manuscript (Case [Issue]22652) String - collect: over Strings is broken

Pharo Issue Tracker
Manuscript Notification
avatar
gcotelli opened Case 22652: collect: over Strings is broken and assigned it to Everyone:
Bug in Project:  String: 1. Pharo Image  •  You are subscribed to this case
Open a Pharo 7.0.0RC1 image and evaluate in a playground:

'aa' collect: [ :a | 1 ]

This will open a Debugger with an "Improper store into indexable object error"

The problem is that collect: implementation (in SequenceableCollection) is using species (so in this case is an String) and it fails because collect: not necessarily produces Characters.

A common way of fix this is to provide an speciesForCollect in the Collection hierarchy, and not return String as the one for Strings.
Priority Priority: 1 – Show Stopper !!!!!! 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