3:40:46antonvhi, does anyone know how to use rowsell for Travis CI today? It fails to install using the install-for-ci.sh (https://github.com/roswell/roswell/issues/463)
3:44:14ozzloyBike, i just did (length (let ((res (list))) (do-external-symbols (sym *PACKAGE*) (when (fboundp sym) (push sym res))) res)) and got 0
3:44:36ozzloyeven though i've defined at least one method. what am i doing wrong?
3:47:47ozzloyi'm getting a feel for it. seems like it's analogous to a package in java, or a module in racket, etc
3:48:49Bikepackages are namespaces, so it's similar to some other languages, yes. although you should keep in mind it's strictly a naming thing. for example functions don't "belong to" packages, only their names may.
3:48:49ozzloyhmm... when i do all symbols, i get 14150 things. is there a way to see just the ones i've made during a session?
3:49:26Bikeanyway, so symbols are divided into these namespaces. the namespace you start out in, cl-user, is not something made for an external interface, it's more for messing around in the repl in.
3:49:46Bikedo-all-symbols iterates over all symbols in all the packages. do-symbols and do-external-symbols only iterate through the symbols in one package.
3:50:14Bike(there are also symbols that are not in any package, but they don't usually name global variables or functions, so i'm skipping that)
3:51:00Bikethere is no particular way to see just what you've defined. a problem with that is that functions newly defined since the lisp started up may include e.g. IDE stuff you didn't define yourself
3:51:19Bikeyou could approximate it doing... let me write this out
3:51:21ozzloyso with do-symbols, i get 1005 things
3:52:03ozzloyoh, thanks! but don't worry if it turns out it's kinda a hairball
3:52:34Bike(let (c) (do-symbols (s "CL-USER" c) (when (eq (symbol-package s) (find-package "CL-USER")) (push s c))))
3:52:58Bikethis will collect symbols that are (a) accessible from the cl-user (repl) package, and (b) are not part of some other package