Sign in Join
FPDoc Onlineexperiment

TFPUnaryOperator.Create constructor

Member of TFPUnaryOperatorpublicIn unit fpExprPars

Create unary operator with operand

Declaration

pascal
constructor Create(AOperand: TFPExprNode)

Arguments

AOperand

The operand expression for the unary operator

Description

The TFPUnaryOperator constructor creates a new unary operation with the specified operand. It takes ownership of the operand node and manages its lifecycle as part of the unary operation.

The constructor properly initializes the unary operation structure and establishes the relationship between the operation and its operand, ensuring that the operand is properly managed during the operation's lifetime.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.