Skip to content

Operator + (Addition)


Sums two expressions

Syntax

vb
declare operator + ( byref lhs as integer, byref rhs as integer ) as integer
declare operator + ( byref lhs as uinteger, byref rhs as uinteger ) as uinteger

declare operator + ( byref lhs as single, byref rhs as single ) as single
declare operator + ( byref lhs as double, byref rhs as double ) as double

declare operator + ( byref lhs as T Pointer, byref rhs as integer ) as T Pointer
declare operator + ( byref rhs as integer, byref lhs as T Pointer ) as T Pointer

declare operator + ( byref lhs as T, byref rhs as integer ) as T
declare operator + ( byref lhs as integer, byref rhs as T ) as T

Usage

result = lhs+rhs

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft