On Sat, Jul 02, 2005 at 10:26:41PM +0100, Nicholas Clark wrote:
> This bit of Perl_sv_clear is generating a compiler warning now:
> 
>     case SVt_PVIO:
>         if (IoIFP(sv) &&
>             IoIFP(sv) != PerlIO_stdin() &&
>             IoIFP(sv) != PerlIO_stdout() &&
>             IoIFP(sv) != PerlIO_stderr())
>         {   
>             io_close((IO*)sv, FALSE);
>         }
> 
> 
> Should we really be ignoring close failure here? Would it be better to
> issue a lexical warning? If so, what category? And what text?

I think people doing an implicit close don't care whether it succeeds,
so the return status should just be quietly ignored.

-- 
Counsellor Troi states something other than the blindingly obvious.
    -- Things That Never Happen in "Star Trek" #16

Reply via email to