From lgautier at gmail.com  Sat May 24 23:17:37 2008
From: lgautier at gmail.com (Laurent Gautier)
Date: Sat, 24 May 2008 23:17:37 +0200
Subject: [Rd] value returned by findFun when the name cannot be found.
Message-ID: <27d1e6020805241417l2e9c62a2i3710d23d50733165@mail.gmail.com>

Dear list,

I have been using "findVar" (defined in src/main/envir.c) happily and
would like to use
"findFun".

However I have trouble when the name searched cannot be found: while
"findVar" returns R_UnboundValue,
"findFun" does not (the 4 last lines of "findFun" are copied below).

    error(_("could not find function \"%s\""), CHAR(PRINTNAME(symbol)));
    /* NOT REACHED */
    return R_UnboundValue;
}

I assume that the comment "/* NOT REACHED */ means that R_UnboundValue
is not returned... and my question is:
what is returned then ? (I am a little lost in the nested calls within "error").


Thanks,


Laurent



[Rd] value returned by findFun when the name cannot be found.
Laurent Gautier