Here is the definition, but thanks for the HELambdaP idea
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.

;; double RNG::uniform(double a, double b) 
;; C++
;; double cv_RNG_uniform_double(RNG* self, double a, double b)  ;; C  
(defcfun ("cv_RNG_uniform_double" uniform-d) :double 
  "Returns the next random number sampled from the uniform distribution." 
  (self (:pointer rng)) 
  (a :double) 
  (b :double))

On Sunday, March 30, 2014 9:44 AM, Marco Antoniotti <marc...@cs.nyu.edu> wrote:
 
What is the CFFI actual definition?
>
>I - but that is a very selfish  proposal :) - would just write a proper 
>handler for HELambdaP.
>
>Cheers
>
>MA
>
>
>
>
>
>On Mar 30, 2014, at 17:11 , Joeish W <joeish80...@yahoo.com> wrote:
>
>> Which is the better way do write documentation for functions for  a CFFI 
>> library
>> 
>> like this?
>> 
>> C++: int RNG::uniform(int a, int b)
>> 
>> Common Lisp: (UNIFORM-D (RNG (:POINTER RNG)) (A :DOUBLE) (B :DOUBLE)) => 
>> :DOUBLE
>> 
>> or like this without the parenthesis
>> 
>> C++: float RNG::uniform(float a, float b)
>> 
>> Common Lisp: (UNIFORM-F (RNG :POINTER RNG) A :FLOAT B :FLOAT) => :FLOAT
>> 
>> _______________________________________________
>> Cffi-devel mailing list
>> Cffi-devel@common-lisp.net
>> http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel
>
>--
>Marco Antoniotti
>
>
>
>
>_______________________________________________
>Cffi-devel mailing list
>Cffi-devel@common-lisp.net
>http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel
>
>
>
_______________________________________________
Cffi-devel mailing list
Cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Reply via email to