Search
Saturday, 25th of May 2019, 2:24:08 UTC
2:39:08
hectorhonn
morning everyone!
2:50:13
hectorhonn
how do i get the return value of the primary method in :around ?
2:59:27
no-defun-allowed
(call-next-method)?
3:25:05
pjb
hectorhonn: don't use :before :after :around Instead, write a primary method, and use (when (next-method-p) (call-next-method))
3:25:30
pjb
hectorhonn: also, mind using method combinations.
3:28:38
hectorhonn
hmm.. ok, let me think about it
5:02:40
aeth
oh, instead of using ~s in format you can use format's conditionals to tell if it's true or false
5:03:03
aeth
then you could e.g. make length 0 format string false and length 1 true
5:17:31
aeth
So I think this is the best FORMAT-based version: (= 1 (length (format nil "~:[~; ~]" x)))
5:22:50
aeth
clothespin: everyone's always here, but they might take a while to respond
5:22:53
clothespin
isn't it morning in europe?
5:24:11
clothespin
i'm trying to find out how people think exceptions and signals should work in a lisp implementation before i go "fix" something
5:26:08
aeth
clothespin: it's not morning in Europe until beach says "good morning"
5:26:26
clothespin
basically in foreign code and also how the implementation works on the os
5:27:17
clothespin
i discovered c++ exceptions in foreign code work fine in sbcl on mac but are masked out by an overzealous handler on windows
5:28:14
clothespin
there's literally this comment which i thought was somewhat humorous:
5:28:37
clothespin
FIXME: HANDLE-WIN32-EXCEPTION should be allowed to decline
5:40:24
clothespin
maybe i should come up with an informative email to sbcl-devel
6:02:04
LdBeth
Good afternoon everyone
6:03:06
beach
Good morning everyone!
6:07:13
no-defun-allowed
now it is morning in europe
8:04:23
phoe
Yes, it is morning in Europe
10:55:51
makomo
flip214: i opened a new MR for alexandria. i saw the discussion on issue 8 -- i could take up that offer of yours if you want :-)
11:47:16
phoe
makomo: https://gitlab.common-lisp.net/alexandria/alexandria/merge_requests/15/diffs ?
12:01:46
dmiles
i have some code tyhat works on linux but not yet complete for windows.. whake sort of condition should i throw?
12:01:59
dmiles
(for when they call it on windows)
12:02:26
phoe
dmiles: (define-condition not-implemented-yet (error simple-condition) ())
12:03:08
makomo
phoe: what about inheriting just from simple-error?
12:03:34
dmiles
thanks because now i can sorta find other examples of not-implemented
12:37:23
beach
dmiles: Conditions are not "thrown" in Common Lisp. They are "signaled". THROW is a Common Lisp function that does something entirely different.
12:43:36
makomo
(same thing for simple-warning as well)
12:52:38
dmiles
yeah the code itself calls signal-condition
Saturday, 25th of May 2019, 14:24:08 UTC