[PD-dev] [ pure-data-Bugs-2996887 ] expr and dollarsign variable tomfoolery

SourceForge.net noreply at sourceforge.net
Wed May 5 04:37:25 CEST 2010


Bugs item #2996887, was opened at 2010-05-04 22:37
Message generated for change (Tracker Item Submitted) made by jancsika1
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2996887&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jonathan Wilkes (jancsika1)
Assigned to: Nobody/Anonymous (nobody)
Summary: expr and dollarsign variable tomfoolery

Initial Comment:
If a dollarsign variable like $1 exists in an abstraction (and has a float value assigned) it can be used with impugnity, such as [expr int($1)].  However, if $1 does not exist, as in a newly created patch with <ctrl-n>, [expr int($1)] will not create.  As a workaround, one must appease the expr parser by offering up sacrificial spaces to pad the $1 like so:
[expr int( $1 )]

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2996887&group_id=55736




More information about the Pd-dev mailing list