Meta Project

The Unofficial Meta Documentation

LET

Summary

LET declares the type of the value of a word

Category

Categoryname

Usage

LET value type!

Arguments

value - name of the declared variable

Refinements

This method has no refinements

Description

LET declares the type of the value of a word, and also assigns a value. This makes LET suitable for constant definitions. LET can also be used for declaring static arrays, where the array content is not constant, but the reference to the array is.

Usually you don't need LET, because Meta has LET-WORD!'s. These are similar to SET-WORD!'s but use "=" instead of ":". They're handy for defining most constant values or constant references

Example Code

This declares three variables of ARRAY! BYTE! type

Let [wave shifts colours] binary! ~100

Related

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

Back to the Meta Methods Reference index