Alexandre Aguiar
2011-Aug-05 04:09 UTC
[R] boolean SEXP interpretation upon function return
Hi, When a function returns a SEXP of type LGLSXP (logical) to signal whether it succeeded or failed, how is it intrepreted? Is it like C where SUCCESS = 0 or other value? Thanks. -- Alexandre -- Alexandre Santos Aguiar, MD, SCT -------------- Pr?xima Parte ---------- Um anexo n?o-texto foi limpo... Nome: n?o dispon?vel Tipo: application/pgp-signature Tamanho: 198 bytes Descri??o: This is a digitally signed message part. URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110805/64598df2/attachment.bin>
On 11-08-05 12:09 AM, Alexandre Aguiar wrote:> Hi, > > When a function returns a SEXP of type LGLSXP (logical) to signal whether > it succeeded or failed, how is it intrepreted? Is it like C where SUCCESS > = 0 or other value?Usually TRUE is used to signal success. TRUE is non-zero. Duncan Murdoch