NeturalMath Language Definition and Syntax

Void Data Type

The Void data type represents a value that cannot be determined or has no meaning. In a sense, a void is an undefined or unquantifiable value. The void data type cannot be directly created, and is only represented through the void constant. The void data type behaves as something of a hybrid between the concept of void and null in C#. It is more closely relate to the void type in C.

Type information

The Void data type will return the String 'void' when queried.
:> x = void
:> numType = type(x)
:> print numType

'void'


If output, the void data type will return the literal void
:> x = void
:> print x

void


Operations

This section is not complete

Literals

Void variables can only be assigned by using the {void} constant.
:> a = void

Conversions

Voids exhibit the following behaviors when converted to other types:

Bool

This section is not complete

Complex

This section is not complete

Number

This section is not complete

Range

This section is not complete

Set

This section is not complete

String

This section is not complete

Units

This section is not complete

Functions

The following System Functions consume the Void data type:
This section is not complete

See Also:

Last edited Oct 14, 2010 at 3:03 PM by zanethorn, version 4

Comments

No comments yet.