Unexpected method (also might be ...
|Top Previous Next|
Messages > Unexpected method (also might be ...
Unexpected method (also might be member-function, which returns a value)
appears, if an instruction begins with an identifier followed by a dot and then followed by a symbol, which does not denote a method. E.g.
This message can result from a wrong chaining of methods. E.g. clear is, a method without return value. Therefore you can't append a second method call on clear.
This message also appears, if you tried to call a member-function, which returns a value; e.g. for the string s:
The following would be correct:
int i = s.length();
In the syntax of c++, this is correct. But the instruction makes no sense, because the returned value is not used. So here an error message appears.
This page belongs to the TextTransformer Documentation
|Home Content German|