Currently, Struct member access method definition causes SEGV.
Do you have plan to support Struct member access method in the future?
Can you show me the code you want to run?
I will fix.
I think supporting member access method is not required because it it not in ISO/IEC 30170.
But, CRuby user may confuse.
So, I want to confirm Matz-san's plan before fix myself.
Incidentally, below code causes SEGV.
$ ./bin/mruby.exe -e 'SampleStruct = Struct.new("SampleStruct", :m1, :m2); s = SampleStruct.new(1, 2); p s.m1'
Segmentation fault (core dumped)
allow struct access; close #295