From: "andrenth (Andre Nathan)" Date: 2013-03-13T03:06:54+09:00 Subject: [ruby-core:53341] [ruby-trunk - Bug #8077] Returning Dir objects from C extensions Issue #8077 has been updated by andrenth (Andre Nathan). 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. ---------------------------------------- Bug #8077: Returning Dir objects from C extensions https://bugs.ruby-lang.org/issues/8077#change-37538 Author: andrenth (Andre Nathan) Status: Feedback Priority: Normal Assignee: Category: ext Target version: next minor ruby -v: 1.9.3p194 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 *)". -- http://bugs.ruby-lang.org/