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

Liam Healy lhealy at common-lisp.net
Sun Jan 17 15:50:49 UTC 2010


OK I have changed the type symbols so that they are in the keyword package.
Thanks for the patches.

Liam

On Mon, Jan 11, 2010 at 12:13 AM, Russell Kliese <russell at kliese.id.au> wrote:
> There is no objection from me to putting them in the keyword package.
>
> Russell
>
> Liam Healy wrote:
>>
>> 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
>>>>
>>
>> _______________________________________________
>> Gsll-devel mailing list
>> Gsll-devel at common-lisp.net
>> http://common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel
>>
>
>




More information about the gsll-devel mailing list