Skip to content
This repository

Question: will define_method and attr_reader be supported? #257

fceller opened this Issue · 3 comments

3 participants

Frank Celler Yukihiro "Matz" Matsumoto Yuichiro MASUI
Frank Celler

Will there be support for these functions in mruby?

Yukihiro "Matz" Matsumoto
matz commented

We will. But since those methods are not easy to implement, we need time.

Yuichiro MASUI

I want to attr_* methods too.
Can I create there methods using C? or Do I need to create there on define_method in mruby code after implemented the method?

Yukihiro "Matz" Matsumoto
matz commented

My plan is attr_reader to generate irep internally and define the method using mrb_define_method_raw.
See proc.c to see basic idea.

Yukihiro "Matz" Matsumoto matz closed this in 97e5ab2
Masaki Muranaka monaka referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.