Meta Project

The Unofficial Meta Documentation

SIZE!

Summary

SIZE! Size can help make sure the size of your variable is capable of holding your values.

Category

DATATYPE

Usage

SIZE! value

Arguments

N.A.

Refinements

Not applicable on category

Description

SIZE! Like in C, using SIZE! should give you an unsigned whole of the suitable size for indexing

Example Code

Without the line size! counter this code will end up in an infinite loop

Let [my-array] binary! ~100
size! counter
for counter [0 ~100][
    mod10: modulo counter 10
    poke next my-array counter ~10
    write/line mod10
]

Related

To be done. No other related method names assigned yet.

Back to the Meta Methods Reference index