Function Parameters

 

Most of the functions and commands in the language require parameters. These come in several types:

  • Integer  

  • 64-bit integer

  • Floating point number  

  • String ( Unicode or Ansi )

  • List 

  • Array

  • COM/.NET object reference

  • Variant

  • Variable name  

The interpreter performs automatic conversions between strings, integers and floating point numbers, so that you can use them interchangeably. In general, the only case to be careful of is comparing two floating point numbers -- floating point numbers have a habit of never being quite equal when you want them to.

Integer parameters may be any of the following:

  • An integer (i.e. 23)

  • A 64-bit integer that can be fully represented by a 32-bit integer  

  • A string representing an integer (i.e. "23")  

  • A variable containing an integer  

  • A variable containing a string representing an integer  

64-bit Integer parameters may be any of the following:

  • A 64-bit integer  

  • A 32-bit  integer (i.e. 42)

  • A string representing a 64-bit integer or a 32-bit integer (i.e."99194853094755497" or "42")  

  • A variable containing a 64-bit integer or a 32-bit integer

  • A variable containing a string representing a 64-bit integer or a 32-bit integer

Floating point parameters may be any of the following:

  • A floating point number (i.e. 3.141569)  

  • A string representing an integer (i.e. "314.1569E-2")  

  • A string representing a 64-bit integer (i.e. "100000000000000")

  • A variable containing a floating point number  

  • A variable containing a string representing a floating point number  

 

String parameters may be any of the following:

  • A string  

  • An integer  

  • A 64-bit integer

  • A variable containing a string  

  • A variable containing a list  

  • A variable containing an integer  

  • A variable containing a floating point number  

 

Data Types

Our shorthand method for indicating function syntax:

(s) indicates a string.

(i) indicates an integer.

(i64) indicates a 64-bit integer.

(f) indicates a floating point number.

(h) indicates a huge number (used by the Huge Number Extender) .

(a) indicates an array.

(r) indicates a COM/.NET object reference.

(t) indicates a special type information described in the function’s text.

(v) indicates a variant.

 

 

§         WIL Language Elements

§         Reference

§         Step by step guide to learning WIL

§         Notes