lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>From lua-l@tecgraf.puc-rio.br Thu Aug  5 22:34:02 1999
>From: Dave Bollinger <DBollinger@compuserve.com>

>   Is it legitimate to compare "if _OUTPUT = _STDOUT then ..."?  It seems

yes.

>Is it further legal to compare an object of
>unspecified type to _STDOUT to test if it is the stdout file handle?  (I'm

yes.  file handles are simply tagged userdata.

you're on the right track.
--lhf