FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 397 : weird compile errors with parentheses
Last modified: 2006-09-19 10:45
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
DUPLICATE of bug
4
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Tim Redfern
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2006-09-19 09:16
I have noticed several times weird errors where sketches that should
compile won't, and trivially moving parentheses around or breaking
statements up across lines, solves it. Here is an example.
void setup()
{
}
int testfunc(String conv)
{
return (int(conv));
}
will not compile, giving ' expecting RPAREN, found '(' ' whereas
void setup()
{
}
int testfunc(String conv)
{
return int(conv);
}
,will.
(I have included the setup function as also, a sketch won't compile for me
unless the return value of the first function is VOID- otherwise I get
'unexpected token', I don't know whether this is a bug or a feature)
Additional Comment
#1 From fry 2006-09-19 10:45
*** This bug has been marked as a duplicate of
4
***