Manuscript (Case [Issue]20738) Kernel - Dictionary>>#storeString generates incorrect source code when a negative number is in values

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

Manuscript (Case [Issue]20738) Kernel - Dictionary>>#storeString generates incorrect source code when a negative number is in values

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  Kernel: 1. Pharo Image  •  You are subscribed to this case
For example:
{ 'x' -> -1 } asDictionary storeString.

returns the string:

((Dictionary new) add: ('x'->-1); yourself)

Which does not work because 'x'->-1 is interpreted as 'x' ->- 1 instead of 'x' -> -1.

So the message #->- is sent to 'x' and this message is undefined.

I guess a simple fix is to add a space before the association's tail or to put it between parentheses.
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

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