<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I can imagine adding a flag to [clone] to automatically pass the
number of instances as the second argument:</p>
<p>[clone -n foo 20] == [clone foo 20 20]</p>
<p>but I'm not sure it's worth it...</p>
<div class="moz-cite-prefix">On 03.03.2021 22:11, IOhannes m zmölnig
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:62771f0a-545c-65a4-39ae-03ca3ee7594e@iem.at">On 3/3/21
9:34 PM, Christof Ressi wrote:
<br>
<blockquote type="cite">Yes, [clone foo 20 20] might look ugly,
<br>
</blockquote>
<br>
well.
<br>
otoh it looks quite elegant inside the cloned abstraction:
<br>
$1 - id of current instance
<br>
$2 - number of instances
<br>
$3... - other args
<br>
<br>
i can't think of an interface to get the total number of instances
inside the abstraction that is not much, much uglier.
<br>
<br>
somethiung like
<br>
<br>
[clones(
<br>
|
<br>
[pdcontrol]
<br>
|
<br>
<br>
:facepalm:
<br>
<br>
gfmards
<br>
IOhannes
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
</body>
</html>