Skip to content

Implement new[size] operator for arrays #10

@cernec1999

Description

@cernec1999

Example syntax:

temp.a = new[3];
temp.a[1] = 2;
//Output 0,2,0
echo(a);

Opcode value (from decompiler):

OPCODE(NewArray, 0x26)

The NewArray opcode basically has a size parameter that indicates how big the array should be. It will pop the top value from the stack as the size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions