lua-users home
lua-l archive

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


On 24/02/2011 19.01, Henderson, Michael D wrote:
The configuration file looks like:

database {
   entry { id = 'batch@raw'
     ,dev  = account { host = 'rawdev' , name = 'batch01', instance = 'raw' }
     ,test = account { host = 'rawtest', name = 'batch11', instance = 'raw' }
     ,prod = account { host = 'rawprod', name = 'batch21', instance = 'raw' }
   },
   entry { id = 'batch@staging'
     ,dev  = account { host = 'stgdev' , name = 'batch02', instance = 'staging' }
     ,test = account { host = 'stgtest', name = 'batch12', instance = 'staging' }
     ,prod = account { host = 'stgprod', name = 'batch22', instance = 'staging' }
   },
}

Are you putting the comma at the beginning of the line to avoid a final comma? That would be needed in C but in Lua a comma after the last entry does no harm.

--
  Enrico