Closed catsidhe closed 9 years ago
Given MyStruct = Struct.new(:field):
MyStruct = Struct.new(:field)
Marshal.dump(MyStruct.new)
Marshal.dump(MyStruct.new([0.0, 0.0]))
Invalid link ID: 2 (table size: 2) (ArgumentError)
Currently Struct support is under construction (as I remember). Has little relation to is_struct function which was fixed recently.
Struct
is_struct
Given
MyStruct = Struct.new(:field)
:Marshal.dump(MyStruct.new)
crashes mruby;Marshal.dump(MyStruct.new([0.0, 0.0]))
in ruby, try loading in mruby:Invalid link ID: 2 (table size: 2) (ArgumentError)