+

+ (left right -- sum)

Inputs

Outputs

This builtin accepts whole and real numbers. Both inputs are dereferenced and must be non-NIL. The operands must have the same schema.

Behavior

Example

{} () {} [
  unknownInt: 7 dynamic;

  "-- int32 --" printCompilerMessage
  3 4 + printStack _:;
  0 7 + printStack _:;
  7 0 + printStack _:;

  "-- zero with unknown int32 --" printCompilerMessage
  0 unknownInt + printStack _:;

  "-- real32 --" printCompilerMessage
  2.5r32 4.0r32 + printStack _:;
] "main" exportFunction

Expected Output During Compilation

-- int32 --
7
7
7
-- zero with unknown int32 --
Int32
-- real32 --
6.5r32

See also