Support Struct member access method? #295

junjis0203 opened this Issue Jun 17, 2012 · 2 comments

2 participants


Currently, Struct member access method definition causes SEGV.
Do you have plan to support Struct member access method in the future?

mruby member

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 ="SampleStruct", :m1, :m2); s =, 2); p s.m1'
Segmentation fault (core dumped)

@matz matz added a commit that closed this issue Jun 17, 2012
@matz matz allow struct access; close #295 4f4965a
@matz matz closed this in 4f4965a Jun 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment