[Gsll-devel] patch to export random number distribution symbols

Liam Healy lhealy at common-lisp.net
Sat Jan 9 14:44:21 UTC 2010


No, in fact when I first looked at this patch I wondered
myself why I hadn't put them in the keyword package.
I guess it was because these were originally functions
with their own names, e.g. sample-uniform, so I just
carried the symbol over when they became methods
of #'sample.  Is the consensus that they be in the keyword
package?

Liam

On Thu, Jan 7, 2010 at 3:23 PM, James Wright <james at chumsley.org> wrote:
> A related question for Liam:  It seems like keywords would make more
> sense for the selector symbols (e.g., :uniform rather that
> 'gsl:uniform).  Is there any particular reason that the selection
> symbols are in the GSL package instead?
>
> Thanks,
>      James
>
> On Wed, Jan 6, 2010 at 7:12 PM, Russell Kliese <russell at kliese.id.au> wrote:
>> It appears that the symbols used to select the various random number sample
>> functions are not exported. I was getting "The symbol "UNIFORM" is not
>> external in the GSLL package." when I ran the following code.
>>
>> (clc:clc-require :gsll)
>> (defparameter *rng* (gsl:make-random-number-generator gsl:+default-type+))
>> (gsl:sample *rng* 'gsl:uniform)
>>
>> I've created a patch to merge into the git repository, but I'm not a Lisp
>> expert, so my solution may be wrong.
>>
>> Thanks to all who have contributed to this very useful library.
>>
>> Russell




More information about the gsll-devel mailing list