18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Programming</strong> <strong>Language</strong> Concepts<br />

(normally) conditions in effect at the time they are first encountered, unless these properties are<br />

redefined in the define statements.<br />

All variables that do not appear in a program preamble are local. Local variables can be used both<br />

in subprograms and in main routines. Normally statements can be used in routines to set background<br />

conditions for local variables, but these conditions do not carry over from one routine to another.<br />

Only the last defined normally conditions in the preamble carry over from routine to<br />

routine. Program 2-1 illustrates how normally and define statements are used to specify properties<br />

of local and global variables.<br />

57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!