<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>Here is the definition, but thanks for the HELambdaP idea</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>Trust me the opinion of a CFFI expert does matter...could you also show me what a HELambdaP definition would look like for this defcfun.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color:
transparent; font-style: normal;"><span>;; double RNG::uniform(double a, double b)
;; C++<br>;; double cv_RNG_uniform_double(RNG* self, double a, double b) ;; C
<br>(defcfun ("cv_RNG_uniform_double" uniform-d) :double
<br> "Returns the next random number sampled from the uniform distribution."
<br> (self (:pointer rng))
<br> (a :double)
<br> (b :double))<br></span></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Sunday, March 30, 2014 9:44 AM, Marco Antoniotti <marcoxa@cs.nyu.edu> wrote:<br> </font> </div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div class="y_msg_container">What is the CFFI actual definition?<br clear="none"><br clear="none">I - but that is a very selfish proposal :) - would just write a proper handler for HELambdaP.<br clear="none"><br clear="none">Cheers<br clear="none"><br clear="none">MA<br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none"><br
clear="none">On Mar 30, 2014, at 17:11 , Joeish W <<a shape="rect" ymailto="mailto:joeish80829@yahoo.com" href="mailto:joeish80829@yahoo.com">joeish80829@yahoo.com</a>> wrote:<br clear="none"><br clear="none">> Which is the better way do write documentation for functions for a CFFI library<br clear="none">> <br clear="none">> like this?<br clear="none">> <br clear="none">> C++: int RNG::uniform(int a, int b)<br clear="none">> <br clear="none">> Common Lisp: (UNIFORM-D (RNG (:POINTER RNG)) (A :DOUBLE) (B :DOUBLE)) => :DOUBLE<br clear="none">> <br clear="none">> or like this without the parenthesis<br clear="none">> <br clear="none">> C++: float RNG::uniform(float a, float b)<br clear="none">> <br clear="none">> Common Lisp: (UNIFORM-F (RNG :POINTER RNG) A :FLOAT B :FLOAT) => :FLOAT<br clear="none">> <br clear="none">> _______________________________________________<br clear="none">>
Cffi-devel mailing list<br clear="none">> <a shape="rect" ymailto="mailto:Cffi-devel@common-lisp.net" href="mailto:Cffi-devel@common-lisp.net">Cffi-devel@common-lisp.net</a><br clear="none">> <a shape="rect" href="http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel</a><br clear="none"><br clear="none">--<br clear="none">Marco Antoniotti<div class="yqt9776288133" id="yqtfd88101"><br clear="none"><br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">Cffi-devel mailing list<br clear="none"><a shape="rect" ymailto="mailto:Cffi-devel@common-lisp.net" href="mailto:Cffi-devel@common-lisp.net">Cffi-devel@common-lisp.net</a><br clear="none"><a shape="rect" href="http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel</a><br
clear="none"></div><br><br></div> </blockquote> </div> </div> </div> </div></body></html>