Wednesday, March 3, 2021

A hidden feature of Interval

This short post to advertise a hidden feature of Interval which I documented in Cincom store SYSBUG-FloatIntervalTest some time ago and rediscovered recently.

This feature is shared by vast majority of Smalltalk dialects, Dolphin, Pharo, Squeak, Visualworks, ...

Certainly more an accidental feature than a deliberate one:

     ((10 to: 12) at: 1.5) = 10.5.

Funny, isn't it?

No comments:

Post a Comment