Skip to content

Range size larger than integer range #80

@TheHllm

Description

@TheHllm

Description

Ranges can have a size larger than the allowed range for Integers. This can be used to proof that, oppsed to what some tests may claim, TScripts for loops are turing complete (at least in the only tscript runtime).

To Reproduce

print(Range(-2, 2147483646).size());

Arrays and strings however are safe(r) since it would be impracticable to create one of them with a size larger than 2147483647. They are also respectivly bounded by 2^32 and 2^53 -1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions