Incompatible Types in Initialization
- by jack
I have the following code in a subroutine that produces an incompatible types in initialization error on the varVal library in the subroutine evaluateExpression:
NSDictionary *varVal;
for (int i=0; i<varCount; i++) {
[varVal setObject:[(i+1)*2 stringValue] forKey:[i stringValue]];
}
double result =[[self brain] evaluateExpression:[[self brain] expression]
usingVariableValues:varVal];
My subroutine declaration in the brain.h file is:
+(double)evaluateExpression:(id)anExpression
usingVariableValues:(NSDictionary *)variables;
I'd appreciate any help.