|
topics >
computer science >
data >
| ||||||||
expression evaluation Topic: expression language |
SummaryIn expression oriented languages, statements have a value which allows their use in expressions. Blocks of statements usually take the value of the last statement, the value of an expression, or the value of an identified variable. Conditional statements usually take a zero value if the condition fails. A function's value is an identified variable or the argument of a 'return' statement. Statement values reduce the need for global variables since they implicitly return a value, but within expressions they have an ad hoc appearance. In a pure expression language, there are no statements or statement values. In any case, local variables defined within a statement should be inaccessible from outside the statement. (cbb 5/80) Subtopic: value of conditional
|