Search
Monday, 20th of March 2017, 20:21:39 UTC
20:22:49
pjb
websterbudding: (princ (aref "a\"b" 1)) #| " --> #\" |#
20:24:01
pjb
pebblexe: you could define one package per file, but usually it's too many packages.
20:31:52
websterbudding
pjb: I don't follow sorry
20:38:38
pebblexe
how do I create/append to a file? it seems that :if-exists :append causes it to error out if it doesn't exist
20:39:01
pebblexe
https://gist.github.com/pebblexe/c46777f5882db86308a50322b57728a7
20:39:05
pebblexe
that's what I have so far
20:39:16
jackdaniel
see http://www.lispworks.com/documentation/HyperSpec/Body/m_w_open.htm
20:39:24
jackdaniel
you have another option :if-does-not-exist
20:40:06
jackdaniel
http://www.lispworks.com/documentation/HyperSpec/Body/f_open.htm#open
20:40:07
pebblexe
ah, but what do I pass to :if-does-not-exist to create a file?
20:40:24
pebblexe
jackdaniel: thank you!
20:40:26
jackdaniel
pebblexe: I have pointed you at manual, so you can find it by yourself
20:40:38
jackdaniel
l1sp.org is useful to look for symbols
20:40:54
jackdaniel
not, it's not lisp.org but l1sp.org
20:42:18
pebblexe
jackdaniel: okay, I was just going off of practical common lisp, but I'll check there too
20:45:20
pebblexe
how do I use with-open-file to point to a file specific to a directory? I mean slime starts up with what as the home directory to write to?
20:46:04
rpav
the binary's cwd in SBCL's case, probably not a portable assumption ;)
20:46:25
rpav
on windows i think it may be the binary's directory
20:46:27
whoman
smile has ,cd command also
20:47:20
pebblexe
I was hoping there might be a way for ccl, as that's what I am using
20:48:16
whoman
if you are slimey, use ,cd or do M-x slime[-connect] in a buffer with the cwd set
20:49:29
pebblexe
figured it out! it's (merge-pathnames (asdf:system-source-directory :cl-msgpack) "temp-bytes")
20:49:42
pebblexe
where the package/filename is different for others of course
20:56:29
Xach
pebblexe: asdf:system-relative-pathname provides a shorthand
22:52:48
eulenspi1gel
** NICK eulenspiegel
7:09:51
beach
Good morning everyone!
Tuesday, 21st of March 2017, 8:21:39 UTC