> > 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() consider + as part of a float literal (was there ever a  
> > time that they didn't? really?).
> 
> What would be the advantages/disadvantages of either way?  My  
> intuition says that  +1 should be a symbol, perhaps because it is  
> rare to write positive numbers in math with a leading +.

well, pd is not the only program, that has to handle string to float
conversions ... most parsers i know, would allow a leading '+' char for
parsing floats ...

> Maybe the errant newbie might be confused when +1 turns out to be a  
> symbol.  But if Pd starts removed + signs upon save, then that could  
> also be annoying.

maybe the newbie is confused by +1 being a symbol? or, if he's not
confused by +1 being a symbol, then probably by 1e+2, being a float ..

t 

--
[EMAIL PROTECTED]    ICQ: 96771783
http://www.mokabar.tk

There's no such entity as "most people". These are generalities. All
generalities are meaningless. You've got to pin it down to a specific
person doing a specific thing at a specific time and space.
  William S. Burroughs

Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to