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 05:51
Subject:
Re: on the almost impossibility to write correct XS modules
Message ID:
20080521125054.GA2842@c4.convolution.nl
Rafael Garcia-Suarez skribis 2008-05-21 10:29 (+0200):
> Actually and moreoever I now tend to agree with Juerd: always apply
> default Unicode semantics. Get alternative ops -- or a pragma -- to
> get latin-1 semantics. Which makes the whole point of UPOK strings
> rather unuseful now.
> 
> Some way to mark PVs as "binary" and not upgradeable to SvUTF8 would be
> handy, though.

Indeed. I had made BLOB for this, but it can't prevent the upgrades.

Though the thing that upgrades can be made to check ->isa("BLOB"). Would
that be possible; would that be desirable?
-- 
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