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.

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;
 
Public destructor Destroy; override;
 

Properties

Public property Name: string read FName write FName;
 
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.

Public property Body: TCasScriptExpression read FBody write FBody;

Function body.


Generated by PasDoc 0.16.0.