[#109207] [Ruby master Feature#18915] New error class: NotImplementedYetError or scope change for NotImplementedYet — Quintasan <noreply@...>
Issue #18915 has been reported by Quintasan (Michał Zając).
18 messages
2022/07/14
[ruby-core:109319] [Ruby master Bug#18919] Ractor: can't share #Method objects
From:
"chucke (Tiago Cardoso)" <noreply@...>
Date:
2022-07-26 08:30:58 UTC
List:
ruby-core #109319
Issue #18919 has been updated by chucke (Tiago Cardoso). Subject changed from Ractor: can't share method-to-proc objects to Ractor: can't share #Method objects Indeed, I didn't mean "to-proc", Method objects, as per the usage example, is the one I meant. ---------------------------------------- Bug #18919: Ractor: can't share #Method objects https://bugs.ruby-lang.org/issues/18919#change-98458 * 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) => #<Method: Kernel.BigDecimal(*)> <internal:ractor>:816:in `make_shareable': can not make shareable object for #<Method: Kernel.BigDecimal(*)> (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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>