The Hyper Programming Language

Class ‘int64’

This is the class reference of built-in type int64.

Class

sealed class int64 : object

This class represents a signed 64-bit integer.

Constructors

procedure new()

Default constructor. Creates an int64 with value 0.

procedure new(i : * int64)

Copy constructor.

implicit procedure new(b : byte)

Implicit conversion constructor.

implicit procedure new(i : int16)

Implicit conversion constructor.

implicit procedure new(i : int32)

Implicit conversion constructor.

implicit procedure new(n : nat16)

Implicit conversion constructor.

implicit procedure new(n : nat32)

Implicit conversion constructor.

Procedures

const procedure abs() : nat64

Returns the absolute value of the signed number.

procedure turnSign()

Turns the sign of this number. A negative number becomes positive and a positive number becomes negative.

Operators

Warning: this is preliminary syntax with the purpose of documenting the operators of this class. Nothing official yet!

Unary Operators

const operator+() : int64

Unary plus.

const operator-() : int64

Unary minus.

const operator++() : int64

Successor.

const operator--() : int64

Predecessor.

Binary Operators

not yet documented

Increment/decrement operators

operator++()

Increment operator.

operator--()

Decrement operator.

Assignment Operators

operator=(i : int64)

Simple assignment operator.

operator+=(i : int64)

Add-assign operator.

operator-=(i : int64)

Subtract-assign operator.

operator*=(i : int64)

Multiply-assign operator.

operator/=(i : int64)

Divide-assign operator.

operator%=(i : int64)

Modulo-assign operator.

See also


Valid HTML 4.01 Strict Valid CSS!