Dynamic Object Indexing for Kym #31

Merged
kayomn merged 3 commits from kym-dynamic-indexing into main 2023-08-12 16:15:50 +02:00
Owner

Adds support for indexing with values other than symbols on objects like tables.

options = {
	.title = "Game",
	["foo"] = "bar",
	[42] = "42",
}

options["foo"] = "rab"
options[42] = "24"

@log_info(options.title)
@log_info(options["foo"])
@log_info(options[42])

Closes #24.

Adds support for indexing with values other than symbols on objects like tables. ```lua options = { .title = "Game", ["foo"] = "bar", [42] = "42", } options["foo"] = "rab" options[42] = "24" @log_info(options.title) @log_info(options["foo"]) @log_info(options[42]) ``` Closes #24.
kayomn added this to the (deleted) milestone 2023-08-12 16:14:19 +02:00
kayomn added the
bug
label 2023-08-12 16:14:19 +02:00
kayomn self-assigned this 2023-08-12 16:14:19 +02:00
kayomn added 3 commits 2023-08-12 16:14:19 +02:00
Add support for subscript operations on objects
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
66df9e3a1e
kayomn merged commit cb961ea573 into main 2023-08-12 16:15:50 +02:00
kayomn deleted branch kym-dynamic-indexing 2023-08-12 16:15:50 +02:00
Sign in to join this conversation.
No description provided.