Skip to content

[Request] Add dollar sign ($) as a non-standard symbol #1897

Open
@vortex104

Description

@vortex104

The games Sonic Robo Blast 2 and Sonic Robo Blast 2 Kart use the dollar sign symbol for a sort of replacement for assignment operators.

Example 1

local a = 1
a = $ | 2

is equivalent to

local a = 1
a = a | 2

Example 2

local tbl = {
    a = 1
}
tbl.a = $ | 2

is equivalent to

local tbl = {
    a = 1
}
tbl.a = tbl.a | 2

Example 3

playerMo.flags = $ & ~MF_NOGRAVITY

is equivalent to

playerMo.flags = playerMo.flags & ~MF_NOGRAVITY

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat/pluginAssociated with a plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions