* doc/en/command.txt
* doc/en/datetime.txt
* doc/en/dbdelim.txt
* doc/en/dbsdf.txt
* doc/en/dbstrux.txt
* doc/en/dir.txt
* doc/en/diskspac.txt
* doc/en/eval.txt
* doc/en/garbage.txt
* doc/en/gtslang.txt
* doc/en/hashes.txt
* doc/en/hb_api.txt
* doc/en/hb_apier.txt
* doc/en/hb_apigt.txt
* doc/en/hb_apiit.txt
* doc/en/hb_apiln.txt
* doc/en/hb_apird.txt
* doc/en/hb_compa.txt
* doc/en/hb_date.txt
* doc/en/hb_macro.txt
* doc/en/hb_set.txt
* doc/en/hb_vm.txt
* doc/en/idle.txt
* doc/en/input.txt
* doc/en/lang.txt
* doc/en/macro.txt
* doc/en/math.txt
* doc/en/memo.txt
* doc/en/memvar2.txt
* doc/en/misc.txt
* doc/en/string.txt
* doc/en/var.txt
* fixes
* doc/en/*.txt
* set mime-type to UTF-8
69 lines
1.7 KiB
Plaintext
69 lines
1.7 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* The following parts are Copyright of the individual authors.
|
|
* www - http://harbour-project.org
|
|
*
|
|
* Copyright 2000 Luiz Rafael Culik <culik@sl.conex.net>
|
|
* Documentation for: EVAL()
|
|
*
|
|
* See COPYING 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
|
|
* $TESTS$
|
|
* See examples
|
|
* $STATUS$
|
|
* R
|
|
* $COMPLIANCE$
|
|
* C
|
|
* $PLATFORMS$
|
|
* All
|
|
* $FILES$
|
|
* Library is vm
|
|
* $SEEALSO$
|
|
* AEVAL(),DBEVAL()
|
|
* $END$
|
|
*/
|