lua-users home
lua-l archive

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

My main routine calls my function.  The function's purpose is to build a
table.  Debug statements within the function seem to indicate that it is
performing as expected.  However, when I use the table in the mainline, the
table is apparently not passed.  The function's table is defined as a local
variable.  Here is the statement:

   data_table = conv(bytes)

and the function looks like this:

  function conv(data)
  local r_table = {}

  return r_table

>From my diagnostic messages inside the function, r_table contains the
expected data, but data_table (in the mainline) does not.  Is the assignment
statement transferring all values from the function to the mainline?


CONFIDENTIALITY NOTICE:  This E-mail message and all attachments, which originated from Sealy Management Company Inc, are intended solely for the use of the intended recipient or entity and may contain legally privileged and confidential information.  If the reader of this message is not the intended recipient, you are hereby notified that any reading, disclosure, dissemination, distribution, copying or other use of this message is strictly prohibited.  If you have received this message in error, please notify the sender of the message immediately and delete this message and all attachments, including all copies or backups thereof, from your system.  You may also reach us by phone at 205-391-6000.  Thank you.