What’s the difference between “flet” and “labels” in Common Lisp?

In Common Lisp, both flet and labels make lexical bindings of slightly different sorts: flet is a special form for local function binding. Bindings are not recursive and cannot refer to each other. Each binding contains function name, arguments, and function body. labels is a special form for local function binding. Bindings can be recursive … Read more

Compiling Common Lisp to an executable

Making hello.exe: * (defun main () (print “hello”)) MAIN * (sb-ext:save-lisp-and-die “hello.exe” :toplevel #’main :executable t) [undoing binding stack and other enclosing state… done] [saving current Lisp image into hello.exe: writing 3160 bytes from the read-only space at 0x22000000 writing 2592 bytes from the static space at 0x22100000 writing 30134272 bytes from the dynamic space … Read more

Common Lisp’s equivalent of \r inside the format function?

Characters for return and linefeed \r is the character #\return in Common Lisp. \n is the character #\linefeed in Common Lisp. The following ends the string “Hello world.” with return and linefeed. (format t “Hello world.~C~C” #\return #\linefeed) #\newline is whatever the platform uses as a line division. On Unix machines this is often the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)