<bike>
well, they're standard effective slot definitions, not your effective slot definition class
<bike>
so effective-slot-definition-class is not returning the correct class
shawnw has joined #commonlisp
donleo has quit [Ping timeout: 248 seconds]
<dnhester_>
hm, so not really following, in the effective slot definition class, I can set a slot even if it's not part of the effective slot definition class? If not, how would I "you should compute the effective slot definition in such a way that the validation function from the direct slots is carried over to the effective slot."?
<bike>
No, you can't set a slot that's not part of the effective slot definition class. Slot definitions are just normal objects, if you set a slot in them that they don't have you get an error.
<bike>
If you define a method on effective-slot-definition-class you can control the class of the effective slot definitions. Right now the method on effective-slot-definition-class is just returning the standard effective slot definition class, so that's what you get.
eddof13 has quit [Quit: eddof13]
eddof13 has joined #commonlisp
erjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.2)]
<bike>
it actually looks like boehm's SIGXCPU and SIGPWR is for stop the world, so maybe we can have it stop the world synchronously instead
kpg` has quit [Ping timeout: 248 seconds]
<dnhester_>
oh, and instead of returning mito-validate-standard-effective-slot-definition I should return mito-validate-standard-direct-slot-definition ?
<dnhester_>
so I don't actually redefine the compute, only that one method?
Pixel_Outlaw has joined #commonlisp
<bike>
no, you should return your effective method class
<bike>
you should not ever be using a direct slotd class as an effective slotd class, they're different things.
Akbar-Birbal has joined #commonlisp
troojg has joined #commonlisp
eddof13 has quit [Quit: eddof13]
edgar-rft_ has joined #commonlisp
edgar-rft` has quit [Ping timeout: 245 seconds]
dnhester_ has quit [Remote host closed the connection]
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
v88m has joined #commonlisp
henriquegogo has quit [Remote host closed the connection]
patrix has quit [Quit: Ping timeout (120 seconds)]
patrix has joined #commonlisp
Colleen has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
Colleen has joined #commonlisp
dnhester26 has joined #commonlisp
zwr has quit [Read error: Connection reset by peer]
dnhester26 has quit [Ping timeout: 265 seconds]
amb007 has quit [Ping timeout: 252 seconds]
rcoper has joined #commonlisp
zwr has joined #commonlisp
rcoper has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
troojg has quit [Ping timeout: 276 seconds]
brokkoli_origin has quit [Remote host closed the connection]
v88m has joined #commonlisp
dnhester26 has quit [Ping timeout: 276 seconds]
brokkoli_origin has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
brokkoli_origin has quit [Ping timeout: 252 seconds]
ryanbw has quit [Ping timeout: 252 seconds]
cayley51 has joined #commonlisp
opinionplatform_ has quit [Ping timeout: 260 seconds]
cayley5 has quit [Read error: Connection reset by peer]
cayley51 is now known as cayley5
ryanbw has joined #commonlisp
random-nick has quit [Ping timeout: 260 seconds]
opinionplatform_ has joined #commonlisp
dnhester26 has joined #commonlisp
dnhester26 has quit [Ping timeout: 260 seconds]
jonatack has quit [Ping timeout: 252 seconds]
ryanbw has quit [Ping timeout: 272 seconds]
v88m has joined #commonlisp
brokkoli_origin has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
lucasta has quit [Quit: Leaving]
mzan has joined #commonlisp
ryanbw has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
Pixel_Outlaw has joined #commonlisp
amb007 has joined #commonlisp
v88m has joined #commonlisp
amb007 has quit [Ping timeout: 252 seconds]
v88m has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
v88m has joined #commonlisp
amb007 has quit [Ping timeout: 252 seconds]
v88m has quit [Ping timeout: 272 seconds]
v88m has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
ryanbw has quit [Ping timeout: 252 seconds]
zwr has quit [Read error: Connection reset by peer]
zwr has joined #commonlisp
akoana has quit [Quit: leaving]
ryanbw has joined #commonlisp
ryanbw has quit [Ping timeout: 272 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
dtman34 has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
decweb has quit [Ping timeout: 252 seconds]
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
dnhester26 has joined #commonlisp
v88m has joined #commonlisp
anticomputer has quit [Ping timeout: 260 seconds]
v88m has quit [Read error: Connection reset by peer]
anticomputer has joined #commonlisp
ryanbw has joined #commonlisp
annamalai has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
annamalai has joined #commonlisp
v88m has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
pve has joined #commonlisp
pranav has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
dnhester26 has quit [Ping timeout: 276 seconds]
treflip has joined #commonlisp
King_julian has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
fitzsim has quit [Read error: Connection reset by peer]
King_julian has quit [Ping timeout: 244 seconds]
v88m has joined #commonlisp
v88m has quit [Ping timeout: 265 seconds]
v88m has joined #commonlisp
ym has joined #commonlisp
treflip` has joined #commonlisp
treflip has quit [Ping timeout: 272 seconds]
mishoo has joined #commonlisp
jonatack has joined #commonlisp
kenran has joined #commonlisp
treflip` has quit [Quit: Quit]
treflip has joined #commonlisp
jonatack has quit [Ping timeout: 255 seconds]
amb007 has quit [Ping timeout: 244 seconds]
amb007 has joined #commonlisp
jonatack has joined #commonlisp
shka has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 246 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<jackdani1l>
if you want to share them some behavior, you may define a mixin that is used in both direct and effective class as one of superclasses
puke has quit [Quit: WeeChat 3.8]
puke has joined #commonlisp
jonatack has joined #commonlisp
mari-estel has joined #commonlisp
alternateved has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
v88m has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
dnhester26 has joined #commonlisp
jonatack has joined #commonlisp
pkal has quit [Read error: Connection reset by peer]
pkal has joined #commonlisp
dnhester26 has quit [Ping timeout: 265 seconds]
v88m has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
mgl_ has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
traidare has joined #commonlisp
jonatack has joined #commonlisp
King_julian has joined #commonlisp
v88m has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
pranav has joined #commonlisp
treflip` has joined #commonlisp
treflip has quit [Ping timeout: 276 seconds]
dnhester26 has joined #commonlisp
treflip` has quit [Quit: Quit]
treflip has joined #commonlisp
v88m has quit [Ping timeout: 276 seconds]
v88m has joined #commonlisp
treflip has quit [Read error: Connection reset by peer]
treflip has joined #commonlisp
traidare has quit [Ping timeout: 248 seconds]
pabs3 has quit [Ping timeout: 244 seconds]
pabs3 has joined #commonlisp
manwithluck has quit [Ping timeout: 276 seconds]
King_julian has quit [Ping timeout: 244 seconds]
manwithluck has joined #commonlisp
<dnhester26>
bike: thank you! I reread everything you wrote last night and somehow it clicked this morning and now everything works.
<dnhester26>
jackdani1l: thank you for the advice, I used it. I was bothered by the repeat work, they are just regular CLOS classes in the end. Thanks for the observation, made things easier just now!
donleo has joined #commonlisp
mwnaylor has quit [Ping timeout: 276 seconds]
mari-estel has quit [Ping timeout: 252 seconds]
mari-estel has joined #commonlisp
rainthree has joined #commonlisp
<dnhester26>
how can I define a type? I have some code which I want the user to be able to pass me some type, and then I want to be able to do (typep some-value given-type), but when I do (integer 18) I get an error saying integer is not a function, and it's a reserved word. If I do deftype I also get integer is undefined. I've tried reading the ASNI Common Lisp book's sections on types to no avail (that's where I got both ideas I presented)
<beach>
You need to quote the expression.
<dnhester26>
Is there a convenient and easy way to define types so that we can test values with (type value given-type) passing the given-type?
<beach>
A type designator is a list.
<dnhester26>
ah, thanks, will try that
<beach>
Er, can be a alist.
<beach>
*sigh*
<beach>
can be a list.
X-Scale has joined #commonlisp
<beach>
,(typep 234 '(integer 18))
<ixelp>
=> T
<jackdani1l>
good that it is not an alist, missing a space there would be rather funny
<dnhester26>
hm, for some reason since I was passing it in the deflcass in a slot as an argument, it was working without the quote, but I couldn't get it to work on the repl to test types, in the REPL I need a quote, and in defclass I don't. Is that because defclass is a macro and it just quotes the arguments I pass to the slot definitions?
<dnhester26>
thanks for the answers!
<beach>
Your analysis is correct.
<beach>
CHECK-TYPE also takes unquoted type designators.
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
<beach>
And TYPEP is a function, so its arguments gets evaluated. So the type designator needs to be quoted.
<dnhester26>
beach: great, thanks, now everything makes sense.
<beach>
Great!
<beach>
And all classes are just regular CLOS classes in the end.
<dnhester26>
beach: "And all classes are just regular CLOS classes in the end." are you referring to the previous MOP discussion? Or are you saying that all classes will be of type standard-class?
<beach>
I am saying that the "class" concept was introduced by CLOS, so all classes are CLOS classes. Some of them are, of course, not standard classes.
rainthree has quit [Ping timeout: 252 seconds]
v88m has quit [Remote host closed the connection]
henriquegogo has joined #commonlisp
v88m has joined #commonlisp
jonatack has quit [Ping timeout: 255 seconds]
<dnhester26>
ah OK, thanks :)
henriquegogo has quit [Remote host closed the connection]
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
jonatack has joined #commonlisp
treflip has quit [Ping timeout: 252 seconds]
X-Scale has quit [Ping timeout: 256 seconds]
kenran has quit [Remote host closed the connection]
jonatack has quit [Ping timeout: 244 seconds]
rainthree has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
szkl has joined #commonlisp
v88m has joined #commonlisp
King_julian has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
wacki has joined #commonlisp
cage has joined #commonlisp
cage has quit [Excess Flood]
cage has joined #commonlisp
decweb has joined #commonlisp
v88m has joined #commonlisp
alcor has joined #commonlisp
metsomedog has joined #commonlisp
random-nick has joined #commonlisp
thollief has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
chkhd has joined #commonlisp
King_julian has quit [Ping timeout: 244 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 252 seconds]
amb007 has joined #commonlisp
jonatack has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
eddof13 has joined #commonlisp
eddof13 has quit [Client Quit]
mulk has quit [Ping timeout: 252 seconds]
mulk has joined #commonlisp
v88m has quit [Ping timeout: 265 seconds]
v88m has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
jon_atack has joined #commonlisp
mari-estel has quit []
szkl has quit [Quit: Connection closed for inactivity]
jon_atack has quit [Quit: WeeChat 4.4.2]
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
jonatack has joined #commonlisp
fitzsim has joined #commonlisp
fitzsim` has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
shka has quit [Read error: Connection reset by peer]
fitzsim has left #commonlisp [#commonlisp]
shka has joined #commonlisp
fitzsim` has quit [Client Quit]
shka has quit [Read error: Connection reset by peer]
fitzsim has joined #commonlisp
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
fitzsim has quit [Client Quit]
fitzsim has joined #commonlisp
v88m has joined #commonlisp
shka has joined #commonlisp
mrcom has quit [Ping timeout: 260 seconds]
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
eddof13 has joined #commonlisp
Guest61ahhhhhh has joined #commonlisp
NotThatRPG has joined #commonlisp
Guest61ahhhhhh has quit [Client Quit]
varjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
zwr has quit [Read error: Connection reset by peer]
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
eddof13 has quit [Quit: eddof13]
zwr has joined #commonlisp
amb007 has quit [Ping timeout: 272 seconds]
chkhd has quit [Quit: ZZZzzz…]
eddof13 has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
X-Scale has joined #commonlisp
cmack has quit [Ping timeout: 252 seconds]
<dnhester26>
Shinmera: for staple: how can I add any arbitrary format? In particular I would like to add org-support to do whatever you do with the markdown files. Is this something you would be open to accept a PR for? can you please give me an idea of what needs to be changed to do that?
eddof13 has quit [Quit: eddof13]
Equill has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
lucasta has joined #commonlisp
treflip has joined #commonlisp
v88m has joined #commonlisp
eddof13 has joined #commonlisp
rainthree has quit [Ping timeout: 244 seconds]
v88m has quit [Read error: Connection reset by peer]
<dnhester26>
Bubblegumdrop: they are two different goals altogether. ratify is to validate data, mito-validate is to provide a way to ensure validation happens before inserts. mito validate is about defining the validation in the class itself. ratify is about how to deal with the data. They would work together
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
<Bubblegumdrop>
Thanks!
<Bubblegumdrop>
Nice work
enzuru has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
zxcvz has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
zwr has quit [Read error: Connection reset by peer]
mulk has quit [Read error: Connection reset by peer]
dnhester26 has joined #commonlisp
zxcvz has quit [Client Quit]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
dnhester26 has joined #commonlisp
dnhester26 has quit [Ping timeout: 244 seconds]
eddof13 has quit [Quit: eddof13]
jistr has quit [Remote host closed the connection]
jonatack has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
jistr has joined #commonlisp
lucasta has joined #commonlisp
wacki has joined #commonlisp
dnhester26 has joined #commonlisp
molson has quit [Ping timeout: 248 seconds]
cage has quit [Quit: rcirc on GNU Emacs 29.4]
eddof13 has joined #commonlisp
jonatack has quit [Remote host closed the connection]
jonatack has joined #commonlisp
mishoo has quit [Ping timeout: 252 seconds]
paddymahoney has quit [Ping timeout: 248 seconds]
paddymahoney has joined #commonlisp
molson has joined #commonlisp
wacki has quit [Read error: Connection reset by peer]
Equill has quit [Ping timeout: 248 seconds]
eddof13 has quit [Quit: eddof13]
wacki has joined #commonlisp
pve has quit [Quit: leaving]
<dmho>
Hi! It's probably obvious but I am unsure how to write something like: `(progn (asdf:load-system :system) (package-in-system:foo))` I understand that there is a compilation error because the second form references a package that doesn't yet exist. How do I tell the runtime that `package-in-system` will exist?
<aeth>
iirc, uiop:symbol-call
<aeth>
sometimes needed in .asd files
<aeth>
You can also use #. to get the system loaded at read-time so it's already there (but then it can't be in a PROGN with something else because it happens at read time)
<dmho>
Very helpful, thank you!
<aeth>
oh, you actually need it in a progn still, but #.(progn (asdf:load-system :system) nil) so only NIL shows up after read time
mwnaylor has quit [Remote host closed the connection]