develooper Front page | perl.perl5.porters | Postings from January 2010

Re: warding against bytes.pm

Thread Previous | Thread Next
From:
Zefram
Date:
January 17, 2010 15:50
Subject:
Re: warding against bytes.pm
Message ID:
20100117235012.GC10264@fysh.org
Aristotle Pagaltzis wrote:
>                                  However, not every string can
>be downgraded, so perl would then have to throw an exception when
>trying to invoke an XSUB that uses `char *` when called with
>a non-downgradeable string. Is that a good idea?

Yes, that's a good idea.  An xsub using a "char *" arg type isn't
prepared to receive characters above U+ff.  This should cleanly die,
not silently do the wrong thing.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About