Technical Notes Database TN994D.txt STATIC VARIABLES LIKE C Category :Pascal Platform :All Product :Turbo Pascal 4.0+ Description: Q. Is there anything similar to C's static variables in 4.0+? A. You can declare private global variables in the implementation part of a unit. Such variables are only visible within that unit. Like other global variables, they retain their values across calls. Typed constant declarations declared within a procedure or function also behave exactly like C's static variables. They are local in scope but since they are allocated in the data segment, they retain their values from call to call. Reference: 7/16/98 4:35:38 PM
Last Modified: 01-SEP-99