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

Re: Time for a 64-bit perl API?

Thread Previous | Thread Next
From:
Tony Cook
Date:
July 1, 2012 18:27
Subject:
Re: Time for a 64-bit perl API?
Message ID:
20120702012710.GA24384@mars.tony.develop-help.com
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.

This isn't such a problem for internal functions where we can update
every call, but for API functions we'll need to define a new entry
point with the new types.

So for example hv_iternextsv() may need an alternate entry point.

Tony

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