Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3114

Using local temp variables to not pollute the global table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.3
    • Lua - Compiler
    • None
    • Mac OS X 10.9.5, Lua 5.2

    Description

      Should prefix the field deserialization statements with "local" whenever the output is a temporary variable, for example this compiler output:
      _elem46 = iprot:readI32()
      should be changed to:
      local _elem46 = iprot:readI32().

      Attachments

        Activity

          People

            jensg Jens Geyer
            xli2012 Xin Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: