libera/#commonlisp - IRC Chatlog
Search
7:22:22
beach
It means that you defined a function RENAME when you were in the COMMON-LISP-USER package, and that package imports the symbol SB-EXT:RENAME.
7:22:51
beach
Furthermore, the package SB-EXT has a "package lock" on it, so you are not allowed to do that.
7:23:12
beach
You should not use the COMMON-LISP-USER package to define your own stuff. Define your own package.
7:24:50
beach
You don't have to. If you define your own package and define RENAME in it, the problem goes away.
7:26:01
beach
(defpackage #:my-package (:use #:common-lisp)) (in-package #:my-package) (defun rename ...)
7:28:33
tourjin
I mean if somewhere in sb-ext there already rename function defined i'd like to see what it is. ...oh ok i type in commonlisp channel again. i'll ask things on clschool channel. thank you. Mr. beach
7:29:26
beach
tourjin: There are probably thousands of functions in various packages in the SBCL system. You can't possibly know them all.
7:32:34
beach
In the version of SBCL that I have, there is not function RENAME in the SB-EXT package. Just a symbol by that name.
7:49:37
tourjin
can you help me again? after trying defpackage #:my-package everythings gone. how can I go back to :sb-ext environment?
12:33:49
nij-
gilberth - One thing you may care (no hurries though): Aproposing "*" in novaspec doesn't work currently.
12:39:12
nij-
Question: LABELS defines local bindings to functions. How about local bindings to closures? Something like (lables_ext ((let ((x 7)) (cls () x)))) ?
12:41:39
nij-
Yeah.. but that's not "local" enough. Say in labels I have 5 local bindings, but that (x 7) is only required in the first local binding..
12:43:40
paulapatience
Depending on what you intend to do, you could make lambdas and call serapeum:fbind
12:47:41
nij-
bike I think that's just a matter of style and expressiveness. (let ..) is so useful because it allows me to know that such binding definitely only works here (lexically). In this aspect, the more localized the let form, the better and clearer.
12:50:35
nij-
Question: What does "initialize" mean in 15.2? https://novaspec.org/cl/f_make-array -- I thought it just meant "populate", but that way I can't understand the sentence:
12:50:45
nij-
> "If initial-element is not supplied, the consequences of later reading an uninitialized element of new-array are undefined unless either initial-contents is supplied or displaced-to is non-nil."
12:53:00
bike
implementations will probably initialize it to something or another, since raw uninitialized memory could be something very weird and screw up the GC
12:53:04
nij-
"uninitialized element" is not a good way to formulate.. it means something different.