Project

General

Profile

Feature #8077

Returning Dir objects from C extensions

Added by andrenth (Andre Nathan) over 7 years ago. Updated over 1 year ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:53322]

Description

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 *)".

Also available in: Atom PDF