Search
Monday, 30th of March 2020, 15:54:31 UTC
15:54:41
sjl_
Or I do an opaque name-and-options in the lambda list, then (destructuring-bind (name ...) (alexandria:ensure-list name-and-options ...)) in the body
15:55:15
sjl_
Which lets users type foo instead of (foo), but is less helpful in the editor.
15:55:21
sjl_
I wish there were a way to have my cake and also eat it.
15:56:41
jmercouris
what I still can't figure out is how to wrap the macro :-\
15:56:49
jmercouris
even with all of this information, I still can't get it
15:57:14
Bike
`(serapeum.exporting:defclass ,name ,supers ,slots ,@options)
15:57:27
jmercouris
maybe there is something else wrong in my codebase
15:57:32
Bike
did you? that's not what you pasted
15:57:36
jmercouris
I know that's not what I pasted
15:57:42
jmercouris
but I haven't pasted every single derivative I tried
15:58:08
jmercouris
that is literally the last one I tried
15:58:15
jmercouris
there must be an error elsewhere then
15:58:27
jackdaniel
sjl_: I've seen that some some lisps (by some I mean allegro and genera, possibly more) recognized a declaration for arglist
15:58:52
jackdaniel
and you could have declared different arglist than a verbatim lambda list
15:58:59
Bike
if i do (defmacro foo ...) and (defmacro bar ...) with this lambda list it works
15:59:02
Bike
like bar can wrap foo fine
15:59:12
jmercouris
the error must be elsewhere
15:59:18
jmercouris
maybe I have a cache error
16:00:22
jmercouris
Is there a way to query lisp for all methods that specialize on a class?
16:00:46
jmercouris
I'm sure there is a way by looking through all symbols, but I meant some idiomatic way
16:00:57
Bike
(mop:specializer-direct-methods class)
16:01:23
Bike
keep in mind this is direct specializations, so it won't get any methods specialized on a subclass
16:01:33
jmercouris
that's fine, that will suffice
16:01:55
jmercouris
OK, this is quite silly
16:02:07
jmercouris
my macro wasn't working because my file was not yet loaded
16:02:16
jmercouris
by the time it was already to be used
16:03:40
_death
sjl: there is a start of a mechanism for "enriched arglists" in slime (see contrib/swank-arglists)
18:21:45
puchacz
hi, I am trying to use cl-conspack with (tracking-refs (*refs*) (decode (encode x)))
18:21:49
puchacz
but I am getting an error
18:22:04
puchacz
Duplicate object ID: 2 Existing value: ROW-CREATION New value: ROW-CREATION
18:22:29
puchacz
I understand it is trying to recreate a symbol
18:22:35
puchacz
surely this symbol exists
18:24:10
puchacz
it can decode when I skip tracking refs, but of course I am left with forward reference inside an object
20:34:13
equwal
LdBeth: https://github.com/matrix-org/matrix-appservice-irc/issues/1008
21:23:53
Lord_of_Life_
** NICK Lord_of_Life
21:28:51
puchacz
FYI, solved my conspack problem
21:36:19
phoe
puchacz: what's the solution?
21:39:20
puchacz
okay, so I had decode and encode that was not specialised, so it was the first problem. I realised I should at least specialise on standard-object
21:39:58
puchacz
next, there are forward references, but they are only resolved if they are kept in alist or a hashmap, or an array, but not in the slot of the object
21:40:08
puchacz
I think it is a bug in conspack
21:40:42
puchacz
so my workaround was to store alists as decoding is progressing, and only copy values from alists to slots after conspack is done
21:41:42
puchacz
anyaway, I am off, getting late here :)
21:42:54
puchacz
so, thumbs up for conspack. much better than json or similar
2:35:01
bmansurov
** NICK Guest82649
Tuesday, 31st of March 2020, 3:54:31 UTC