Search
Sunday, 11th of August 2019, 9:20:06 UTC
14:12:23
TMA
is there an "almost standard" way to represent map/dictionary/hashtable literals? (almost standard means widely accepted as for example asdf, cffi, bordeaux-threads, cl-ppcre or hunchentoot)
14:47:18
flip214
TMA: how about #.(alexandria:alist-to-hash-table '((:key1 . 1) (:key2 . 2))) ?
19:37:22
fiveop
(defclass my-op (asdf:non-propagating-operation) ()) (defmethod asdf:perform ((o my-op) c) (print c)) (asdf:operate 'my-op :alexandria) => no output
19:42:02
jackdaniel
problem description ,)
19:43:53
fiveop
I expect at least 'perform ((o my-op) (c system))' to be called, and thus a representation of the system alexandria to be printed.
19:46:23
jackdaniel
your snippet prints here #<system "alexandraia"> and returns two values, operation and a plan
19:49:33
jackdaniel
fiveop: asdf caches results of operations
19:49:38
jackdaniel
so it will print only the first time
19:49:56
jackdaniel
try restarting your image and pasting it
19:50:53
fiveop
That helped, I must have messed something up (eventually, it told me there is no package asdf)
19:51:16
jackdaniel
quicklisp calls (require 'asdf) if it is not present
19:51:21
jackdaniel
otherwise you need to call it yourself
19:51:25
jackdaniel
or put it in the rc file
19:51:55
fiveop
It should be and was there (because of quicklisp)
20:10:00
fiveop
deriving from asdf:downward-operation I got where I wanted: perform called for my-op on all dependencies of the system
20:10:23
fiveop
(asdf:clear-system :alexandria) allowed me to run the op multiple times with full effects
20:17:42
Lord_of_Life_
** NICK Lord_of_Life
Sunday, 11th of August 2019, 21:20:06 UTC