[Pyrex] Is this example correct?

Greg Ewing greg at cosc.canterbury.ac.nz
Tue May 6 01:14:44 CEST 2003


"Edward C. Jones" <edcjones at erols.com>:

> Is the code below correct?

It looks okay to me.

> Can I reduce the number of calls to malloc?

You seem to have about the right number as far as I can see.

> Any ideas for improvement?

Seeing as you've got a wrapper for a Num, why not use it
for getting and setting the nump attribute of AAA, instead
of OpaquePtr?

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list