Number>>#timesRepeat: implementation is not faithful to Smalltalk language spec

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

Number>>#timesRepeat: implementation is not faithful to Smalltalk language spec

Richard Sargent
Administrator
1000000 timesRepeat: [12 factorial]

According to the code shown in the browser, the above expression should answer the receiver. It answers zero, instead.

(I realize the implementation is optimized by the compiler. It should still execute as if the Smalltalk code shown was being executed.)

It is probably easiest to change the putative Smalltalk code.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/ba7c1955-72fd-42a0-856f-acd9c8ed4a19%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Number>>#timesRepeat: implementation is not faithful to Smalltalk language spec

Seth Berman
Thanks Richard...we'll take a look

- Seth

On Friday, August 9, 2019 at 5:04:12 PM UTC-4, Richard Sargent wrote:
1000000 timesRepeat: [12 factorial]

According to the code shown in the browser, the above expression should answer the receiver. It answers zero, instead.

(I realize the implementation is optimized by the compiler. It should still execute as if the Smalltalk code shown was being executed.)

It is probably easiest to change the putative Smalltalk code.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/52db91b4-e4ec-4ffc-acc9-d542da4ead07%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Number>>#timesRepeat: implementation is not faithful to Smalltalk language spec

Seth Berman
Hi Richard,

This has been integrated and will be in 9.2.
Thanks!

- Seth

On Friday, August 9, 2019 at 5:14:11 PM UTC-4, Seth Berman wrote:
Thanks Richard...we'll take a look

- Seth

On Friday, August 9, 2019 at 5:04:12 PM UTC-4, Richard Sargent wrote:
1000000 timesRepeat: [12 factorial]

According to the code shown in the browser, the above expression should answer the receiver. It answers zero, instead.

(I realize the implementation is optimized by the compiler. It should still execute as if the Smalltalk code shown was being executed.)

It is probably easiest to change the putative Smalltalk code.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/09a91b35-5869-425f-b7db-d06fb353ef7b%40googlegroups.com.