Skip to content

Stop returning Lua tables with 0-indexingΒ #4329

@YoshiRulz

Description

@YoshiRulz

These are non-idiomatic and annoying to work with (though IMO the normal 1-indexed tables are also annoying).
Switching a function's indexing is a breaking change, so we should plan to change them all at once. The candidates are:

  • client.getavailabletools()
  • comm.mmfReadBytes(string, int)
  • event.availableScopes()
  • memory.getmemorydomainlist()
  • (deprecated) memory.readbyterange(long, int, string?)/mainmemory.readbyterange(long, int)
  • movie.getcomments()/movie.getsubtitles()
  • tastudio.getbranches()/tastudio.getselection()

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions