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

Re: on the almost impossibility to write correct XS modules

From:
demerphq
Date:
May 14, 2008 14:55
Subject:
Re: on the almost impossibility to write correct XS modules
Message ID:
9b18b3110805141455n2cbaf8c1sd8643138a53addd7@mail.gmail.com
2008/5/8 Nicholas Clark <nick@ccl4.org>:
> On Sun, Apr 27, 2008 at 05:59:53AM +0200, Marc Lehmann wrote:
>
>  > the point is, code that uses char * without looking at the flag in other
>  > ways is simply broken, it has no defined/documentable behaviour on the
>  > perl level.
>
>  Agree. The code can't know for sure what it's getting.
>
>  I'm still digesting the rest of the ideas in the thread.

This problem crops in the core as well as in XS. For instance our
internal file apis use char* parameters. (This is relevant for Win32
in particular)

yves




-- 
perl -Mre=debug -e "/just|another|perl|hacker/"



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