Skip navigation.
 
mlC-function returning?
FROM : Christiaan Hofman
DATE : Mon May 05 00:17:12 2008

Hi list,

I'm struggling with a very weird problem. I have a method that sort of 
looks as follows:

- (id)doSomething:(id)argument {
    NSLog(@"before");
    id value = callCFunction(argument);
    NSLog(@"after");
    // rest of the method
    return value;
}

I don't think it should really matter what the c-function is or the 
precise method name or the rest of the implementation (right?) Anyway, 
when this method is called, I see the log for "before", but not 
"after". So apparently the C-function callCFunction implicitly 
returns! AFAIK this should not be possible. Or am I wrong? I am 
totally lost. Anyone have an idea?

Thanks,
Christiaan

Related mailsAuthorDate
mlC-function returning? Christiaan Hofman May 5, 00:17
mlRe: C-function returning? Scott Stevenson May 5, 00:38
mlRe: C-function returning? Markus Hitter May 5, 00:49
mlRe: C-function returning? JanakiRam May 6, 19:43
mlRe: C-function returning? Christiaan Hofman May 6, 22:49
mlRe: C-function returning? Andrew Merenbach May 6, 23:39