On Mon, 2 Oct 2000, Jarkko Hietaniemi wrote:

> > Assuming that the perl parser generated IV SVs rather than NVs for
> > the 2 constants 2,3, then my scheme would handle this fine; the IV
> 
> It currently does so.
> 
> > version of add() would be called, and an IV SB would result.
> 
> "The IV version of add()"?  Beware of combinatorial explosion:
> addII, addIU, addUI, addUU, addIN, addNI, addNN, addblahbah....
> 

PDL overcomes this by using PDL::PP to automatically generate all the
required function code from a simple signature. PDL has to automatically
deal with type conversions all the time.


-- 
Tim Jenness
JCMT software engineer/Support scientist
http://www.jach.hawaii.edu/~timj


Reply via email to