Hi,
I don't know if anyone can confirm this, but there seems to be a strange behaviour with expr. I checked the archives and couldn't see anything obvious, so apologies if this is a repeat.
If used in an abstraction and given a $x variable as a first argument i.e.
expr $1 * $f3 * 10
it works properly - substituting $1 from the abstraction's first argument. However, if the first argument is delimited by parenthesis i.e.
expr ($1 * $f3 * 10)
the console reports a syntax error and an instance of the object is not created.
This is no major problem, but I just thought it should be reported.
Jamie
In fact this doesn't work either:
expr $f3 + ($1 * 10)
although this does:
expr $f3 + (10 * $1)
Jamie
On Fri, 2005-03-11 at 16:35 +0000, Jamie Bullock wrote:
Hi,
I don't know if anyone can confirm this, but there seems to be a strange behaviour with expr. I checked the archives and couldn't see anything obvious, so apologies if this is a repeat.
If used in an abstraction and given a $x variable as a first argument i.e.
expr $1 * $f3 * 10
it works properly - substituting $1 from the abstraction's first argument. However, if the first argument is delimited by parenthesis i.e.
expr ($1 * $f3 * 10)
the console reports a syntax error and an instance of the object is not created.
This is no major problem, but I just thought it should be reported.
Jamie
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
On Fri, 11 Mar 2005, Jamie Bullock wrote:
If used in an abstraction and given a $x variable as a first argument i.e. expr $1 * $f3 * 10 it works properly - substituting $1 from the abstraction's first argument. However, if the first argument is delimited by parenthesis i.e. expr ($1 * $f3 * 10) the console reports a syntax error and an instance of the object is not created.
Try expr ( $1 * $f3 * 10) yes, every $x variable needs a space before it, whereas $fx,$vx,etc variables don't.
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju
Yes that works. Many thanks.
Jamie
On Fri, 2005-03-11 at 15:38 -0500, Mathieu Bouchard wrote:
On Fri, 11 Mar 2005, Jamie Bullock wrote:
If used in an abstraction and given a $x variable as a first argument i.e. expr $1 * $f3 * 10 it works properly - substituting $1 from the abstraction's first argument. However, if the first argument is delimited by parenthesis i.e. expr ($1 * $f3 * 10) the console reports a syntax error and an instance of the object is not created.
Try expr ( $1 * $f3 * 10) yes, every $x variable needs a space before it, whereas $fx,$vx,etc variables don't.
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list