<html><head></head><body>Yes, if you look at FIVEAM-ASDF, that is how John Maraist and I do it. We introduce a subclass of systems that has an extra slot holding the list of tests to be performed, and PERFORM reads that slot when doing TEST-OP.<br> <br><div class="gmail_signature"><div>-- <br>Robert P. Goldman</div></div> <p class="gmail_quote" style="color:#000;">On March 20, 2021 at 02:45:57, Marco Antoniotti (<a href="mailto:marco.antoniotti@unimib.it">marco.antoniotti@unimib.it</a>) wrote:</p> <blockquote type="cite" class="gmail_quote"><span><div><div></div><div>
<div dir="ltr">
<div>Ok.<br>
<br></div>
<div>Well, can you at least have a plist or something in the
component specification? I presume yes. I am just
allergic to RTFM as you know :)</div>
<div><br></div>
<div>Marco<br></div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Mar 20, 2021 at 12:04 AM
Robert Goldman <<a href="mailto:rpgoldman@sift.info">rpgoldman@sift.info</a>>
wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="font-family:sans-serif">
<div style="white-space:normal">
<p dir="auto">We don't actually. Faré deprecated that. The reasons
are complicated, but basically, it wasn't possible to propagate
arguments through a plan. What do you need an argument for? Maybe
there's a work-around.</p>
<p dir="auto">On 19 Mar 2021, at 16:24, Marco Antoniotti wrote:</p>
</div>
<blockquote style="border-left:2px solid rgb(119,119,119);color:rgb(119,119,119);margin:0px 0px 5px;padding-left:5px">
<div id="gmail-m_-2235478089674487431FE37A0F1-6A16-4FC4-9873-6364703E4F34">
<div dir="ltr">
<div>BTW.<br>
<br></div>
<div>If you do not advise to specialize OPERATE, how do you pass
arguments to PERFORM?</div>
<div><br></div>
<div>MA<br></div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Mar 19, 2021 at 7:45 PM
Robert Goldman <<a href="mailto:rpgoldman@sift.info" target="_blank">rpgoldman@sift.info</a>> wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="font-family:sans-serif">
<div style="white-space:normal">
<p dir="auto">P.S. I don't recommend writing your own <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">OPERATE</code> methods -- <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">OPERATE</code> is quite complicated and messing
with it could lead you into very deep water. I don't believe you
should ever need to.</p>
<p dir="auto">On 19 Mar 2021, at 13:42, Robert Goldman wrote:</p>
</div>
<div style="white-space:normal"></div>
<blockquote style="border-left:2px solid rgb(119,119,119);color:rgb(119,119,119);margin:0px 0px 5px;padding-left:5px">
<div id="gmail-m_-2235478089674487431gmail-m_-256831916411433079550861DC3-6639-4D3D-824F-B4CAA6806F97">
<div style="font-family:sans-serif">
<div style="white-space:normal">
<p dir="auto">Hi. I'm happy to help you work through this, but so
that it doesn't recur as a problem, I'd appreciate it if you would
help me fix the manual's discussion of this.</p>
<p dir="auto">First, have you read this page <a href="https://common-lisp.net/project/asdf/asdf.html#Creating-new-operations" style="color:rgb(57,131,196)" target="_blank">https://common-lisp.net/project/asdf/asdf.html#Creating-new-operations</a>
?</p>
<p dir="auto">Please have a look at that -- it's not very long --
and let us know what more needs to be supplied.</p>
<p dir="auto">I note the discussion of <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">operation-done-p</code>. I suspect that is your
problem -- your new operation is not aware that it needs to be
performed.</p>
<p dir="auto">This page is substantially redundant with the pages
on the object model, and should be beefed up with cross-references,
and more inclusion of docstrings...</p>
<p dir="auto">On 19 Mar 2021, at 12:58, Marco Antoniotti wrote:</p>
</div>
<div style="white-space:normal"></div>
<blockquote style="border-left:2px solid rgb(119,119,119);color:rgb(119,119,119);margin:0px 0px 5px;padding-left:5px">
<div id="gmail-m_-2235478089674487431gmail-m_-256831916411433079543D63DF3-DA91-4518-9292-B16B45D962E2">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi</div>
<div><br></div>
<div>I am trying to create a new ASDF:OPERATION, but I must be
missing something and the manual (or Google) does not seem to help
much.<br>
<br></div>
How do you create a new operation, which may be quite simple?
Or better, how do you get PERFORM and/or OPERATE to actually do
something for you.<br>
<br></div>
I know I should RTFM, but in this case it is more of a RTFC, which
is far more difficult.<br>
<br></div>
I tried the following<br>
<br></div>
<div><span style="font-family:monospace">(defclass my-op
(non-propagating-operation) ())</span></div>
<div><span style="font-family:monospace"><br></span></div>
<div><span style="font-family:monospace">(defmethod perform ((o
my-op) (s system))<br></span></div>
<div><span style="font-family:monospace"> (print
42))<br>
<br></span></div>
<div><span style="font-family:monospace">(defmethod operate ((o
my-op) (s system) &key &allow-other-keys)</span></div>
<div><span style="font-family:monospace"> (print
666))</span></div>
<div><br></div>
<div>But then, doing<br>
<br></div>
<div><span style="font-family:monospace">cl-user 42> (operate
'my-op (find-system "somesys") :bar 1024)<br></span></div>
<div><span style="font-family:monospace">#<MY-OP
><br></span></div>
<div><span style="font-family:monospace">#<ASDF/PLAN:SEQUENTIAL-PLAN
2301B97B></span></div>
<div><br></div>
<div>is all I get.</div>
<div><br></div>
<div>Any tutorial or advice?<br>
<br></div>
<div>Thanks<br></div>
<div>
<div>
<div>
<div><br>
--<br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
Marco Antoniotti, Associate Professor</span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;text-decoration:none"> </span>
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
tel.</span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration:none;display:inline;float:none;white-space:pre-wrap"> </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">+39
- 02 64 48 79 01</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
DISCo, Università Milano Bicocca U14 2043</span> <a href="http://dcb.disco.unimib.it/" style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://dcb.disco.unimib.it</a><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
Viale Sarca 336</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
I-20126 Milan (MI) ITALY</span><br></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div style="white-space:normal">
<blockquote style="border-left:2px solid rgb(119,119,119);color:rgb(119,119,119);margin:0px 0px 5px;padding-left:5px">
</blockquote>
</div>
<div style="white-space:normal"></div>
</div>
</div>
</blockquote>
<div style="white-space:normal">
<blockquote style="border-left:2px solid rgb(119,119,119);color:rgb(119,119,119);margin:0px 0px 5px;padding-left:5px">
</blockquote>
</div>
<div style="white-space:normal"></div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<br>
--<br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
Marco Antoniotti, Associate Professor</span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;text-decoration:none"> </span>
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
tel.</span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration:none;display:inline;float:none;white-space:pre-wrap"> </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">+39
- 02 64 48 79 01</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
DISCo, Università Milano Bicocca U14 2043</span> <a href="http://dcb.disco.unimib.it/" style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://dcb.disco.unimib.it</a><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
Viale Sarca 336</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
I-20126 Milan (MI) ITALY</span><br></div>
</div>
</div>
</div>
</div>
</blockquote>
<div style="white-space:normal">
<blockquote style="border-left:2px solid rgb(119,119,119);color:rgb(119,119,119);margin:0px 0px 5px;padding-left:5px">
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<br>
--<br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
Marco Antoniotti, Associate Professor</span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;text-decoration:none"> </span>
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
tel.</span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration:none;display:inline;float:none;white-space:pre"> </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">+39
- 02 64 48 79 01</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
DISCo, Università Milano Bicocca U14 2043</span> <a href="http://dcb.disco.unimib.it/" style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://dcb.disco.unimib.it</a><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
Viale Sarca 336</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none">
I-20126 Milan (MI) ITALY</span><br></div>
</div>
</div>
</div>
</div></div></span></blockquote></body></html>