Go to main content

type

This function return the type of a variable.

TYPE

NAME

type - This function return the type of a variable.

SYNOPSIS

variable.type() or type(variable)

DESCRIPTION

The function return a string representation of the type of the specify variable. The following values can be return:

  • type = "undefined";
  • type = "int";
  • type = "float";
  • type = "string";
  • type = "null";
  • type = "pointer";
  • type = "buffer";
  • type = "reference";
  • type = "context";
  • type = "array";
  • type = "bool";
  • type = "c function";
  • type = "user function";

PARAMETERS

Variable

RETURN

String representation of the type

EXAMPLES

   int a; a.type(); return int;

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2022 extenso Inc. All rights reserved.