<div dir="ltr">If you are already putting the &quot;literal&quot; argument in the creation args, then why not just make another creation argument that shadows the dollar argument?<br><br>Mike<br><br><br><div class="gmail_quote">
On Mon, Sep 29, 2008 at 10:56 AM, IOhannes m zmoelnig <span dir="ltr">&lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi<br>
<br>
we are having a hard time with the following problem:<br>
we want to create an object that has a variable number of iolets, based<br>
on the $args available.<br>
e.g. [myobj $1] should create an object with a single inlet<br>
[myobj $3] should create an object with 3 inlets.<br>
<br>
the number of iolets depends on the literal value of the dollargs, not<br>
on the expanded values!<br>
<br>
you can think of this like an [expr] object, but using &quot;$2&quot; directly<br>
instead of &quot;$f2&quot;.<br>
<br>
now the problem is that i haven&#39;t found a way how to access the raw<br>
object arguments in the constructor (new-routine) of the object.<br>
<br>
it is simple to do so _after_ the constructor (by accessing the binbuf),<br>
but then it is too late.<br>
the raw args are not available yet within the constructor (it is filled<br>
right afterwards in the canvas_objtext() routine)<br>
the reason is obvious, as there is no memory allocated to store the<br>
binbuf before a call to pd_new()<br>
<br>
unfortunately the insight of why this is like it is does not really help me.<br>
<br>
does anybody (miller?) knows a way (or trick) how to access the raw<br>
arguments within the constructor (or _very_ shortly afterwards: that is,<br>
before the next object is created)<br>
<br>
else i would like to file a feature request to fill the information i<br>
need within the pd_new()<br>
<br>
any thoughts?<br>
<br>
<br>
fgamrsd<br>
IOhannes<br>
<br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@iem.at">Pd-dev@iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>—Yehudi Menuhin (1916–1999), musician<br>

</div>