common-lisp-statistics package usage

Visto 56 veces
Saltar al primer mensaje no leído

Harvey Stein

no leída,
12 abr 2015, 13:47:0712/4/15
a lisp...@googlegroups.com
How are the packages in common-lisp-statistics intended to be used?  I can mess with it by just doing:

   (in-package :cls-user)

What about if I want to write my own package that uses common-lisp-statistics?  If I merely try something like:

   (defpackage :my-cls-package
      (:use :cl :cls))

then I get loads of symbol conflict messages because :cls is intended to shadow many functions from :cl.

Is there a package like :cls-user that I can :use that handles all of the shadowing, but won't get polluted by random playing around like :cls-user will get?  Or do I really need to mimic the definition of :cls-user in my package?  If the latter, how do I make that portable between versions, in that the list of symbols to shadow can change over time.

Thanks.

A.J. Rossini

no leída,
12 abr 2015, 13:51:5312/4/15
a lisp-stat

Hi Harvey -

In middle of a personal problem that is occupying more time than it should, but there should be an example in the examples for what you should be doing.  Basically use the cls-user package defn as a templates and add/remove what you need.

Apologies for running late on the response.

Are you using git or quicklisp?

If git, drop all code into examples directory and tell me where to pull your changes from.

If quick lisp, then as you did, mailing files is fine and I will try to squeeze time in tomorrow.  Not sure , it will be the first day back at work in 2 weeks...

Best
,-tony

--
You received this message because you are subscribed to the Google Groups "Common Lisp Statistics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-stat+...@googlegroups.com.
To post to this group, send email to lisp...@googlegroups.com.
Visit this group at http://groups.google.com/group/lisp-stat.
For more options, visit https://groups.google.com/d/optout.

A.J. Rossini

no leída,
12 abr 2015, 13:53:0412/4/15
a lisp-stat

And for portability, I probably should macro it.  Bit even then it could be an issue.  Not sure how we can keep this pre-alpha code base at a production level, but we could try....

Harvey Stein

no leída,
12 abr 2015, 23:42:3312/4/15
a lisp...@googlegroups.com
No problem.

I looked at the examples as well as the definition of :cls-user.  010-loadingData.lisp defines :cls-examples, but it uses a half dozen packages & then has to set up shadowing for dozens of symbols.  The same goes for the definition of :common-lisp-user.  I wanted to avoid having to reproduce such a long list at the top of my packages, not to mention reproducing the list of symbols in multiple files.
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos