Returning Dir objects from C extensions
In 1.8 it was possible to return Dir objects from C extensions by mimicking the code in dir.c and using Data_Wrap_Struct(rb_cDir, dir_mark, dir_free, dirp). This doesn't work in 1.9+, so it would be nice to have the Dir methods exposed to C extensions. For example, something like "VALUE rb_dir_new(DIR *)".
- Category set to ext
- Status changed from Open to Feedback
- Target version set to 2.6
The code I'm working with is wrapping the fdopendir(3) function (return a DIR* from a file descriptor). This is currently not possible except in ruby 1.8.
Any chance of this going ahead?
- Target version deleted (
- ruby -v deleted (
- Tracker changed from Bug to Feature
Also available in: Atom