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

Using local temp variables to not pollute the global table

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: Lua - Compiler
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: