Goto main content

datatypes

Datatypes for extenso.

DATATYPES

NAME

datatypes - Datatypes for extenso.

SYNOPSIS

  • undefined
  • integer
  • double
  • string
  • null
  • associative array
  • array
  • boolean

DESCRIPTION

This section describes all datatypes defines in Extenso.

An integer can be specified in the following way:

  • a = 56;
  • a = 0x56; // Hexadeciaml number
  • a = 0x101010; // Binary Number

ASSOCIATIVE ARRAY

The output of a variable thay as an associative array is a little bit like quantum mechanics. The user never knows the order he will get. So if one does:

a = { 'z' : 1, 'a': 2 };
a;

One will get

{"a":2,"z":1}

a["z"] will return 1
a.z will return 1

The definition of the key in a context is an expression. So, you could use something like x = { f() : 4 }. In that case, the returned value of function f will be used as the key for the value 4. In that case, if one used x = { y : 4 }, the key would be the value of the variable y.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

a=5;
a=5.2;
a="string";
a=true;
a=false;
a=null;
a=undefined;
a=[1,2,{"a":1,"b":2}];

SEE ALSO

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.