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

Re: Time for a 64-bit perl API?

Thread Previous | Thread Next
Tony Cook
July 1, 2012 18:27
Re: Time for a 64-bit perl API?
Message ID:
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);


  void foo(Ssize_t)

the compiler will widen the parameter for us.

If we change:

  void bar(I32 *);


  void bar(Ssize_t *);

If we're lucky the compiler will produce an error (or it may just

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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About