StéphaneDucasse

Results 1102 comments of StéphaneDucasse

Hello what is the status of this issue?

We should remove the -> logic modifying the original code is a cheap and dated way to report error. We should raise an error and let the client decide what...

Here is the answer of NICE Try it in Squeak and pick the relevant methods. Open a bug report and commit the fix. Of course, original authorship will somehow be...

The "random" index for atRandom is, basically, computed prngOutput mod: selectionRange. For large selection ranges, it fails because the period of the PRNG used by atRandom is 2^30th, with the...

Thanks for this link. Note that there are quite good classical PRNG already programmed for Pharo in package Polymath including a Mersenne twister and Marsaglia KISS as used in gfortran......

In Pharo 12 I got ``` 33665478090738534551265947698821085861731431479409397989099502699963737964544 4a6dfc4000000000000000000000000000000000000000000000000000000000 56737219946914414999965920440123632085542434921225913774821309228306904645632 7d7020e400000000000000000000000000000000000000000000000000000000 9899038960990396535394384800841929201551291814850384676665448694206894702592 15e2a85200000000000000000000000000000000000000000000000000000000 ```

In P9 ``` 61525305964451392265031629257731411204474240315985566218943821361314187444224 880616d1100c3000000000000000000000000000000000000000000000000000 32460455300860748330048361511611026813408964515496646286299724575483742912512 47c3f7748f87f000000000000000000000000000000000000000000000000000 66339844569971116430435079087868031799733900749859557373570528374113358053376 92ab057b25560800000000000000000000000000000000000000000000000000 ```

So we should add the precondition in an explicit manner. ``` ... (self isSelector & self isBinary not) ifFalse: [ ^ self ] ```