Files
harbour-core/doc/en/eval.txt
Viktor Szakats 58faf91453 2016-01-14 19:17 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
* *
    % remove brandings and homepage [1] from copyright header. Pass 1 - using script.
      [1] nobody has access to it anymore AFAIK - and it's also just
          a redirect since long
    ! update url in copyright header
    ; this should make the diff between 3.4 and 3.2 easier to manage
2016-01-14 19:18:17 +01:00

62 lines
1.6 KiB
Plaintext

/*
* The following parts are Copyright of the individual authors.
*
* Copyright 2000 Luiz Rafael Culik <culik@sl.conex.net>
* Documentation for: Eval()
*
* See COPYING.txt for licensing terms.
*
*/
/* $DOC$
$TEMPLATE$
Function
$NAME$
Eval()
$CATEGORY$
API
$SUBCATEGORY$
Execute and Execution
$ONELINER$
Evaluate a code block
$SYNTAX$
Eval( <bBlock> [, <xVal> [,...] ] ) --> xExpression
$ARGUMENTS$
<bBlock> Code block expression to be evaluated
<xVal> Argument to be passed to the code block expression
<xVal...> Argument list to be passed to the code block expression
$RETURNS$
<xExpression> The result of the evaluated code block
$DESCRIPTION$
This function evaluates the code bloc expressed as <bBlock> and
returns its evaluated value. If their are multiple expressions within
the code block, the last expression will be value of this function.
If the code block requires parameters to be passed to it, they are
specified in the parameter list <xVal> and following. Each parameter
is separated by a comma within the expression list.
$EXAMPLES$
PROCEDURE Main()
LOCAL bBlock := {|| NIL }
? Eval( 1 )
? Eval( @bBlock )
? Eval( {| p1 | p1 }, "A", "B" )
? Eval( {| p1, p2 | p1 + p2 }, "A", "B" )
? Eval( {| p1, p2, p3 | p1 }, "A", "B" )
RETURN
$STATUS$
R
$COMPLIANCE$
C
$PLATFORMS$
All
$FILES$
Library is core
$SEEALSO$
AEval(), dbEval()
$END$
*/