Skip to content

(a = list()) += value does not work #2714

Open

Description

@wixoaGit

Compound assignments (+=, -=, |=, etc) work with assigments (=, ||=, etc) as their left-hand value in BYOND. These are R-value expressions in OpenDream which our compound assignments don't work with.

I tried supporting this by implementing EmitReference() on our compound assignments, making them L-values, but ran into (a = list()) = value not working in BYOND.

This appeared in the first commit of goonstation/goonstation#27986.

Activity

  1. added
    bug
    Compiler
    on Oct 3, 2026
  2. Kapu1178 commented on Nov 19, 2026

    @Kapu1178
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compilerbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions