Meta Project

The Unofficial Meta Documentation

DECLARE

Summary

DECLARE declares a static type for a variable

Category

Categoryname

Usage

DECLARE value type!

Arguments

value - name of the declared variable type! - DATATYPE!

Refinements

This method has no refinements

Description

DECLARE declares a static type for a variable. DECLARE is needed even less than LET, because you can write the type in front a variable declaration, like in many other languages.

Example Code

byte! me

whole16! [var1 var2]

You can also initialise with enumerations:

whole16! [uninitialised initialised-1: 1 initialised-2]

Where the long form is

declare [var1 var2] whole16!

Related

LET  

Back to the Meta Methods Reference index