From: nobu.nokada@... Date: 2002-03-22T01:39:09+09:00 Subject: Re: Windows version of Ruby (proposals) Hi, At Fri, 22 Mar 2002 00:56:05 +0900, Dave Thomas wrote: > > > sysdep :win32 > > > would be the same as 'require "sysdep_win32"' > > > > > > sysdep :win32, File, Dir > > > > Isn't it enough with `require'? > > I'd like to have a central place that these things vector > through. That way, the programmer expresses intent, and the system > makes it so. Using a plain require obviously works just fine, but we > lose that intent. I guess `require "sys/..."' also looks obvious, but get your point. It's sure yours is more obvious. > Also, if we have just one place where non-portably code is loaded, we > can more easily add things like > > ruby --check-portable ... > > flags. It may need to be a keyword if you want it to work with -w option, otherwise loaded modules also can do what Kernel#sysdep can do. -- Nobu Nakada