Menu

#2 method return values

open
nobody
None
5
2002-11-26
2002-11-26
Rudi Angela
No

Many of the methods defined in XMLParser class don't have an explicited return value. My compiler (gcc 3 on MacOSX) assumes an integer return value in this case.
However, some of the methods don't contain a return statement, which leads to compiler errors.
I suggest you make the return types explicit:
'(int) foo' instead of just 'foo'.
Also you should include explicit return statements in the implementations of the methods.
Of course I have solved these problems in my local copies, but I think it would help the whole ObjC community if it is solved here.

Cheers,

Rudi Angela

Discussion


Log in to post a comment.

MongoDB Logo MongoDB