comment - realizedollar
this expands the receive name to the $0 value
@@ -78,9 +78,11 @@ static t_class *commentsink_class;
static t_pd *commentsink = 0;
static void comment_receive(t_comment *x, t_symbol *s){
- if(s != &s_){
- if(x->x_receive_sym != &s_) pd_unbind(&x->x_ob.ob_pd, x->x_receive_sym);
- pd_bind(&x->x_ob.ob_pd, x->x_receive_sym = s);
+ t_symbol *rcv = canvas_realizedollar(x->x_glist, s);
+ if(rcv != &s_){
+ if(x->x_receive_sym != &s_)
+ pd_unbind(&x->x_ob.ob_pd, x->x_receive_sym);
+ pd_bind(&x->x_ob.ob_pd, x->x_receive_sym = rcv);
}
}
