Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^5: odd line in windows (WONTFIX)

by ikegami (Pope)
on Sep 09, 2011 at 03:20 UTC ( #924999=note: print w/replies, xml ) Need Help??

in reply to Re^4: odd line in windows
in thread odd line in windows

I filed a ticket and was told that this is documented in perlxs.

This is quite useful as it usually improves readability. While this works fine for an SV *, it's unfortunately not as easy to have AV * or HV * as a return value. You should be able to write:

AV * array() CODE: RETVAL = newAV(); /* do something with RETVAL */ OUTPUT: RETVAL

But due to an unfixable bug (fixing it would break lots of existing CPAN modules) in the typemap file, the reference count of the AV * is not properly decremented. Thus, the above XSUB would leak memory whenever it is being called. The same problem exists for HV *.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924999]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-03-25 03:52 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (300 votes). Check out past polls.