[#49675] Request to update LEGAL file for zlib, UCD license — Jun Aruga <jaruga@...>

こんにちは。有賀と申します。

10 messages 2016/06/20

[ruby-dev:49648] Prime doesn't work as a Singleton because it has no .new() method

From: Noah Gibbs <the.codefolio.guy@...>
Date: 2016-06-07 20:11:16 UTC
List: ruby-dev #49648
I was looking at Bug #11953 (https://bugs.ruby-lang.org/issues/11953).

It looks like Prime is now a Singleton. But unfortunately, it has no .new()
method that works. The Singleton .instance() method requires .new().

This causes some code to fail, like the simple Prime test in Bug #11953.

Should Prime go back to tracking its instance internally with a member
variable, like it did before commit
d2487ed47587ec1cd1b456068e0af3ea0b39596d?

In This Thread

Prev Next