#8 Merged
Repository
jas43 jas43
Branch
default
Repository
haraldkl haraldkl
Branch
default

get_table_userdata: getting a userdata value from a table.

Author
  1. jas43 avatarjas43
Reviewers
Description

Hi!

Just a little further work on userdata (commit 36970e86f833)--add the equivalent procedure for reading userdata from a table.

Userdata is a pretty specialised object (and used rarely?). Is it worth adding the equivalent procedures to aot_vector_module?

Comments (1)

  1. Harald Klimach repo owner

    Thanks. I am not sure about the usage scenario to read userdata in vectorized form from the Lua code, but it might be handy in some cases. More interesting from my point of view is the other direction, when passing a complete array of data as input for a Lua function in the form of a userdata object, that might provide a big speed improvement. However, so far speed was no issue for me here, and I didn't bother looking into it, yet.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.