From: "Eregon (Benoit Daloze)" Date: 2022-07-20T10:51:46+00:00 Subject: [ruby-core:109258] [Ruby master Bug#18919] Ractor: can't share method-to-proc objects Issue #18919 has been updated by Eregon (Benoit Daloze). I don't see a `.to_proc` call in the description. Either way, both Method and Proc objects can't be shared, they have mutable state. For Method/UnboundMethod they could potentially be made immutable and therefore shareable (sounds good to me), but it would be a potentially-breaking change. ---------------------------------------- Bug #18919: Ractor: can't share method-to-proc objects https://bugs.ruby-lang.org/issues/18919#change-98389 * Author: chucke (Tiago Cardoso) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- The following is not shareable: ```ruby > meth = ::Kernel.method(:BigDecimal) => # :816:in `make_shareable': can not make shareable object for # (Ractor::Error) ``` I understand that procs have the issue of accessing outer-scope variables, but does the same apply to methods converted to procs? -- https://bugs.ruby-lang.org/ Unsubscribe: