<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 6 Aug 2019 at 15:43, Alexandre Torres Porres <<a href="mailto:porres@gmail.com">porres@gmail.com</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 dir="ltr"><div dir="ltr"><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 class="gmail_quote"><div dir="ltr"><div dir="ltr" class="gmail_attr">Em ter, 6 de ago de 2019 às 01:30, Tsz Kiu Pang <<a href="mailto:osamupang@gmail.com" target="_blank">osamupang@gmail.com</a>> escreveu:</div><br><div><br></div></div></div></div></blockquote></div><div class="gmail_quote"><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 class="gmail_quote"><div> an expression has to always output a value (?), but if we are implementing<br></div><div>"if", "else", "then" operators, an outlet does not have to necessarily output anything,</div></div></div></blockquote><div><br></div><div>so yeah, maybe a new class creator with a different orientation is all we need.</div><br></div></div></blockquote><div>Not sure if this is related, but I was just looking at the class creator of expr in the file x_vexp_if.c,</div><div>and in the function expr_setup, there is a section commented as "expr initialization".</div><div>I notice that apart from creating the class "expr", the class "exprproxy" also has to be created.</div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">        /*  <br>         * expr initialization<br>         */<br>        expr_class = class_new(gensym("expr"), (t_newmethod)expr_new,<br>            (t_method)expr_ff, sizeof(t_expr), 0, A_GIMME, 0); <br>        class_addlist(expr_class, expr_list);<br>        exprproxy_class = class_new(gensym("exprproxy"), 0,<br>                                        0, sizeof(t_exprproxy), CLASS_PD, 0); <br>        class_addfloat(exprproxy_class, exprproxy_float);<br>        class_addmethod(expr_class,(t_method)expr_version,<br>                                                        gensym("version"), 0);</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"></span>These two classes seem to be created using the class_new function separately, and<br>at the moment I can't seem to find the "glue" that connects exprproxy_class and expr together,</div><div>it would be great if someone could please shed some light on this...</div><div><br></div><div>Cheers,<br></div><div>TK<br></div></div></div>