Re: [R] boolean SEXP interpretation upon function return

2011-08-05 Thread Duncan Murdoch
On 11-08-05 7:19 AM, Prof Brian Ripley wrote: On Fri, 5 Aug 2011, Duncan Murdoch wrote: 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

Re: [R] boolean SEXP interpretation upon function return

2011-08-05 Thread Jim Lemon
On 08/05/2011 09:19 PM, Prof Brian Ripley wrote: On Fri, 5 Aug 2011, Duncan Murdoch wrote: 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

Re: [R] boolean SEXP interpretation upon function return

2011-08-05 Thread Prof Brian Ripley
On Fri, 5 Aug 2011, Duncan Murdoch wrote: 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 s

Re: [R] boolean SEXP interpretation upon function return

2011-08-05 Thread Duncan Murdoch
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

[R] boolean SEXP interpretation upon function return

2011-08-04 Thread Alexandre Aguiar
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 signature.asc Description: This is a digitally signed mess