Skip to content

Post-increment on globals mis-handled in LSL #23

@HaroldCindy

Description

@HaroldCindy

We might not be doing the store correctly, post-increment doesn't update the lvalue correctly.

integer i;
default {
    state_entry() {
        while(i < 100) {
            ++i;
            print(i);
        }
    }
}

completes correctly, but changing it to a post-increment will print 0 forever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions