From: Charles Oliver Nutter Date: 2008-09-10T12:34:04+09:00 Subject: Re: FileUtils.chdir thread safety ara.t.howard wrote: > > On Sep 9, 2008, at 8:09 PM, Charles Oliver Nutter wrote: > >> We could ignore implementation details for the moment, couldn't we? It >> would be nice to have. > > > people seem to think so. i always use expand_path, but it would be a > cool feature. > > what's your thoughts on adding things to jruby that diverge from the mri? There are already such things in JRuby, like the 'jruby' library you can require to get access to the parser, the current JRuby instance, and the "real" Java object representing any Ruby object (like the org.jruby.RubyString that backs a String). And there's a few items we've added for compatibility with Rubinius libraries as well. In general if we add anything that's not standard, you have to require it, so it's more like an extension. That seems in line with MRI extensions we can't easily emulate or port yet. As small as this seems, it could be a JRuby extension... require 'thread/chdir' But I suppose there's a slippery slope adding too many such features. - Charlie