From: nobu.nokada@... Date: 2003-03-12T06:17:28+09:00 Subject: Re: ruby-dev summary 19711 - 19772 Hi, At Wed, 12 Mar 2003 03:17:02 +0900, Paul Brannan wrote: > > Akira also requested to make IO#pipe and IO#popen call IO#initialize > > to add original initialization codes. Nobu Nakada replied that it is > > not recommended because that change may break IO's features as a > > "wrapper" of FILE*. > > What are "original initialization codes"? According to [ruby-dev:19717], he seems to be trying original buffering behavior. > I do not understand why calling IO#initialize would break IO's features > as a wrapper of FILE*. Can you elaborate on this? Overriding #initialize method means to expose the parameters to Ruby level, howeber, raw FILE* pointers are used in IO#popen under some platforms (other than UNIX and Windows) in the current implementation. It can be very dangerous. -- Nobu Nakada