[squeak-dev] Cannot store into-> (Is this related to changes in Spur)?

gettimothy gettimothy at zoho.com
Tue Nov 9 14:44:11 UTC 2021


Hi Folks,



I am migrating a package from Cog to Spur and I am getting errors that I suspect are related to it.





Here is an example:





|result|

  	result := pairs inject: first

                        into: [ :base  :pair |

                              (pair first = 'round')

                                    ifTrue: [

                                                (pair last >= 0)

                                                      ifTrue:[

                                                            (base >=0)

                                                                  ifTrue:["Cannot store into ->"base := base roundUpTo: ((1/10) raisedTo:(pair last truncated)) asFloat]

                                                                  ifFalse:[base := base roundDownTo: ((1/10) raisedTo:(pair last truncated)) asFloat]]

                                                      ifFalse:[

                                                            (base >=0)  

                                                                  ifTrue:[

                                                                              base := base roundDownTo: ((1/10) raisedTo:(pair last truncated)) asFloat]

                                                                                         ifFalse:[base := base roundUpTo: ((1/10) raisedTo:(pair last truncated)) asFloat]]]].



                                                                        transcripton ifTrue:[Transcript show:'PHPRoundSimple ' , (result asFloat); cr.	].



^ result




Is this related to changes in Spur?



thx



t
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211109/da75c33d/attachment.html>


More information about the Squeak-dev mailing list