Nicholas Clark <[EMAIL PROTECTED]> writes:
>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?

As the FALSE tells io_close() this _IS_ an implcit close 
the place to do whatever you decide is in there.

Perhaps split function and invent 

void io_close_implicit( IO * io )
{
}




>
>Nicholas Clark

Reply via email to