>>>>> "rif" == rif  <[EMAIL PROTECTED]> writes:

    rif> ps.  This example is taken from section 8.7.5 of the CMUCL manual.  As
    rif> far as I can tell, this example was never tested, as there are at least
    rif> three errors:

    rif> 1.  The definition of sum is wrong --- it's declared to return a
    rif>     double and returns nothing.

    rif> 2.  The def-alien-routine call is wrong.  It says (n int :in) but I'm
    rif>     pretty sure means (n integer :in).

    rif> 3.  The call (system:int-sap (array-data-address x)) can't work.  It
    rif>     should be (system:vector-sap x).

    rif> Does anyone agree/disagree that this example is of pretty low quality,
    rif> and should probably be fixed up?

FWIW, this example has been cleaned up and I've tested it
successfully, exactly as given in the document.

You can find it in the latest CVS sources.

Ray

Reply via email to