Files
mruby-mruby/include/mruby
dearblue 668b12e756 Check more MRB_ARGS_NONE()
The `__id__` method implemented in the C function has `MRB_ARGS_NONE()` specified, but it is also effective in the following cases.

```ruby
p nil.__id__ opts: 1 rescue p :a
p nil.method(:__id__).call 1 rescue p :b
p nil.method(:__id__).call opts: 1 rescue p :c
p nil.method(:__id__).to_proc.call 1 rescue p :d
p nil.method(:__id__).to_proc.call opts: 1 rescue p :e
p nil.method(:__id__).unbind.bind_call nil, 1 rescue p :f
p nil.method(:__id__).unbind.bind_call nil, opts: 1 rescue p :g
p nil.__send__ :__id__, 1 rescue p :h
p nil.__send__ :__id__, opts: 1 rescue p :i
```

After applying this patch, all items will output symbols in the same way as CRuby.

For this purpose, add `MRB_PROC_NOARG` to `struct RProc::flags`.
2021-11-26 12:18:41 +09:00
..
2020-11-17 12:41:10 +09:00
2021-04-24 10:31:21 +09:00
2019-12-13 04:41:43 +09:00
2020-12-13 18:38:22 +10:00
2021-07-25 13:07:10 +09:00
2021-11-19 22:53:01 +09:00
2021-11-26 12:18:41 +09:00
2019-08-18 20:12:44 +09:00
2019-08-18 20:12:44 +09:00