[PD] float parsing

2006-12-27 Thread Mathieu Bouchard
If I type something like this in a messagebox: list +1 +1 +1 -1 -1 -1 -1 +1 then should the +1 be floats or symbols? (currently, they're symbols) _ _ __ ___ _ _ _ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelan

Re: [PD] float parsing

2006-12-27 Thread Miller Puckette
Dunno which is should be, but the 'c' language doesn't allow unary '+' in front of numerical literals... so I followed that lead. cheers Miller On Wed, Dec 27, 2006 at 09:05:09PM -0500, Mathieu Bouchard wrote: > > If I type something like this in a messagebox: > > list +1 +1 +1 -1 -1 -1 -1 +1

Re: [PD] float parsing

2006-12-27 Thread Mathieu Bouchard
On Wed, 27 Dec 2006, Miller Puckette wrote: Dunno which is should be, but the 'c' language doesn't allow unary '+' in front of numerical literals... so I followed that lead. I don't know which C language you are talking about. Try compiling the following program with options -ansi -pedantic-e

Re: [PD] float parsing

2006-12-28 Thread Hans-Christoph Steiner
On Dec 28, 2006, at 12:03 AM, Mathieu Bouchard wrote: On Wed, 27 Dec 2006, Miller Puckette wrote: Dunno which is should be, but the 'c' language doesn't allow unary '+' in front of numerical literals... so I followed that lead. I don't know which C language you are talking about. Try compil

Re: [PD] float parsing

2006-12-28 Thread Tim Blechmann
> > This demonstrates that unary + works in front of numerical literal, > > both in the main language and in the preprocessor. I don't know of > > a way to test whether the last + before the 1 is actually > > considered part of the literal or not. However, both scanf() and > > strtod() cons

Re: [PD] float parsing

2006-12-28 Thread Mathieu Bouchard
On Thu, 28 Dec 2006, Hans-Christoph Steiner wrote: My intuition says that +1 should be a symbol, Intuition is something that is trained. If you trained that part of your intuition using pd and not much else, you may get to see "+1 is a symbol" as something normal, obvious, and the way it sho