develooper Front page | perl.perl5.porters | Postings from May 2008

Re: on the almost impossibility to write correct XS modules

Thread Previous | Thread Next
From:
Juerd Waalboer
Date:
May 21, 2008 14:21
Subject:
Re: on the almost impossibility to write correct XS modules
Message ID:
20080521212140.GE2929@c4.convolution.nl
Glenn Linderman skribis 2008-05-21 10:17 (-0700):
> So where are the places where perl string operations need bytes?  O (of 
> I/O) springs to mind.

Everything involving system calls or C level calls that aren't
specifically wrapped to deal with Unicode.

> So if it is cheap to add a flag to prevent upgrades, and produce errors 
> or warnings at the point of upgrade attempts, maybe that is OK, but 
> correct code wouldn't need the checks, as far as I can see.

I agree that correct code wouldn't need the checks. That is: if an API
is correctly designed. However, if the API is already set in stone,
giving this single bit of metadata to a string can really help to
improve existing modules.
-- 
Met vriendelijke groet,  Kind regards,  Korajn salutojn,

  Juerd Waalboer:  Perl hacker  <#####@juerd.nl>  <http://juerd.nl/sig>
  Convolution:     ICT solutions and consultancy <sales@convolution.nl>
1;

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