develooper Front page | perl.perl5.porters | Postings from July 2012

Re: Time for a 64-bit perl API?

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
July 1, 2012 20:13
Subject:
Re: Time for a 64-bit perl API?
Message ID:
1C5D5E40-2C6F-412B-8E2A-0665CC1B07D1@cpan.org

On Jul 1, 2012, at 6:27 PM, Tony Cook wrote:

> On Sun, Jul 01, 2012 at 05:22:34PM -0700, Father Chrysostomos wrote:
>> 
>> On Jun 20, 2012, at 4:22 AM, Nicholas Clark wrote:
>>> Widening the types of pointers breaks things.
>> 
>> How?
> 
> If we change:
> 
>  void foo(I32);
> 
> to:
> 
>  void foo(Ssize_t)
> 
> the compiler will widen the parameter for us.
> 
> If we change:
> 
>  void bar(I32 *);
> 
> to
> 
>  void bar(Ssize_t *);
> 
> If we're lucky the compiler will produce an error (or it may just
> warn).
> 
> If we happen to miss a warning we're probably going to overwite
> something we shouldn't.

Thank you.  That makes it very clear.

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