ruby-deepclone icon indicating copy to clipboard operation
ruby-deepclone copied to clipboard

Support for other Ruby implementations

Open eregon opened this issue 5 years ago • 0 comments

Deep Clone seems to heavily depend on internals that MRI itself does not expose.

I think the best way to support other Ruby implementations such as TruffleRuby and JRuby would be to use a pure-Ruby fallback using Marshal.load Marshal.dump(obj) on any implementation where RUBY_ENGINE != "ruby". Do you think this could be done in this gem? Then it would work transparently on other Ruby implementations.

From https://github.com/oracle/truffleruby/issues/2073

eregon avatar Aug 14 '20 14:08 eregon