Contents | Prev | Next | Index


Assignments

The purpose of an assignment is to replace the current value of a variable with a new value specified by an expression. The expression must be assignment compatible with the variable. The assignment operator is written as ":=" and stands for becomes.

assignment        ::= left_designator := expr      
left_designator   ::= expr_designator                  
                  ::= @ expr_designator                
                  ::= sub_expr selector_list           
expr_designator   ::= designator                       
                  ::= func_var_ref                     
func_var_ref      ::= func_result selector_list        
func_result       ::= proc_designator actual_parameters
sub_expr          ::= ( expr )                               


Contents | Prev | Next | Index

Canterbury Pascal for JVM  (Last documentation update Sep 02, 2004)
Copyright © 1999-2004 J.Neuhoff - mhccorp.com  . All rights reserved.
Please send any comments or corrections to neuhoff@mhccorp.com