[PD] Pd External Question

Jonathan Wilkes jancsika at yahoo.com
Mon Jan 18 19:06:28 CET 2016


> Beware:  when mixing symbols and floats in parsed argument lists, Pd will
send all the symbol arguments first, then the floats - not necessarily
in the order that the arguments appear in the Pd message.
Has that ever been documented anywhere other than the logic in m_class.c?
-Jonathan
 

    On Monday, January 18, 2016 12:32 PM, Miller Puckette <msp at ucsd.edu> wrote:
 

 It's fine to just use (t_symbol *) for function arguments.

The only reason there's a separate "t_floatarg" is that some 90-s era
compilers weren't able to pass single-precision floats as function arguments.
I don't think we'll ever see that happen again but there's no reason to
go through and take it all out either.

Beware:  when mixing symbols and floats in parsed argument lists, Pd will
send all the symbol arguments first, then the floats - not necessarily
in the order that the arguments appear in the Pd message.

cheers
Miller

On Mon, Jan 18, 2016 at 12:01:44PM -0500, Ricky Graham wrote:
> Hello,
> 
> Is there a symbol equivalent to t_floatarg when writing an object in C? I’d like to pass a symbol on creation.
> 
> All the best,
> 
> Ricky
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

_______________________________________________
Pd-list at lists.iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160118/37941ca3/attachment.html>


More information about the Pd-list mailing list