From: george.ogata@... Date: 2016-07-05T04:48:33+00:00 Subject: [ruby-core:76262] [Ruby trunk Feature#3511] rb_path_to_class should call custom const_defined? methods Issue #3511 has been updated by George Ogata. File marshal-dynamic.patch added I've attached an updated patch for current ruby trunk, which I think is a little more consistent with non-lazily-defined constant lookup. Also simplified the test case a little. ---------------------------------------- Feature #3511: rb_path_to_class should call custom const_defined? methods https://bugs.ruby-lang.org/issues/3511#change-59499 * Author: Aaron Patterson * Status: Feedback * Priority: Normal * Assignee: ---------------------------------------- =begin It would be nice if rb_path_to_class called custom const_defined? methods. This would give marshaled objects a chance to locate and define classes when they are being unmarshalled. I've attached a patch with a test that demonstrates the desired functionality and a (probably naive) implementation. =end ---Files-------------------------------- rb_path_to_class.patch (1.67 KB) marshal-dynamic.patch (1.81 KB) -- 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>