Class TCasScriptUserFunction

Unit

Declaration

type TCasScriptUserFunction = class(TObject)

Description

CastleScript user function definition.

Not to be confused with TCasScriptFunction: TCasScriptFunction is an internal, built-in function or operator. This class represents functions defined by user.

Source: src/castlescript/castlescript.pas (line 849).

Hierarchy

  • TObject
  • TCasScriptUserFunction

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;

Properties

Public property Name: string read FName write FName;
Public property Parameters: TCasScriptValueList read FParameters;
Public property Body: TCasScriptExpression read FBody write FBody;

Description

Methods

Public constructor Create;

This item has no description.

Source: src/castlescript/castlescript.pas (line 855).

Public destructor Destroy; override;

This item has no description.

Source: src/castlescript/castlescript.pas (line 856).

Properties

Public property Name: string read FName write FName;

This item has no description.

Source: src/castlescript/castlescript.pas (line 858).

Public property Parameters: TCasScriptValueList read FParameters;

List of function parameters.

Note that they are also referenced inside function Expression, so you simply change them to set value of this parameter within whole function body.

These are always fresh variables, not referenced anywhere outside of Body. This means that they are owned (always, regardless of OwnedByParentExpression) by this class.

They must always be of TCasScriptParameterValue class.

Source: src/castlescript/castlescript.pas (line 871).

Public property Body: TCasScriptExpression read FBody write FBody;

Function body.

Source: src/castlescript/castlescript.pas (line 874).


Generated by PasDoc 0.17.0.snapshot.