<div dir="ltr"><div dir="ltr"><div dir="ltr" class="gmail_attr">Em dom., 27 de fev. de 2022 às 20:26, José de Abreu <<a href="mailto:abreubacelar@gmail.com">abreubacelar@gmail.com</a>> escreveu:<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 dir="ltr"><div dir="ltr"><div>but not all objects works if the flags appear in different order,</div></div></div></blockquote><div><br></div><div>I know, that's because they should come first! This is why I think it's confusing that sigmund~ doesn't complain and it just works...</div><div><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 dir="ltr"><div dir="ltr"><div></div><div>[netreceive -u 5000] will listen to port 5000 and will use udp protocol,<br></div><div>but<br></div><div>[netreceive 5000 -u] will listen to port 5000 and use tcp protocol!! -u is ignored in this case...</div></div></div></blockquote><div><br></div><div>yup, wrong order, so it gets ignored, but a warning should be given that the order is wrong, so it's ignored!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div></div><div>but on the other hand, pd also has the opposite case, where flags comes in the end, they are on the text family objects, specifically the [text sequence] object<br><br>[text sequence text-help-seq2 -g], the -g goes after the creation argument with the name of the text... and -w or -t also goes in the end<br></div></div></div></blockquote><div><br></div><div>I'm almost done writing the reference for all objects, there are 6 to go, and I didn't get to [text] yet, ahahahaha, so I was missing that one in my radar. </div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em dom., 27 de fev. de 2022 às 20:58, Christof Ressi <<a href="mailto:info@christofressi.com">info@christofressi.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[text sequence] is really an outlier. Typically, flags come *before* <br>
positional arguments, but *after* "methods", see [text define]. Here the <br>
flags come *after* the first (and only) positional argument. To add more <br>
to the confusion, there is a problem with the flag parsing: <br>
<a href="https://github.com/pure-data/pure-data/issues/1579" rel="noreferrer" target="_blank">https://github.com/pure-data/pure-data/issues/1579</a></blockquote><div><br></div><div>I haven't looked closely but I believe the best thing to do here is to make the code allow these flags coming before the array name and document it as such! It should also work by creating them in the wrong order as in sigmund~ though.</div></div></div>