10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

OpenROAD NamesThe following code example uses three applications:Application AContains frames A1, A2, and X. The application also includes Application Band C.Application BContains frames B1, B2, and X. The application also includes Application C.Application CContains frames C1, C2, and X.Assume that each of the frames in each of these applications has the followingvariable assignments:/* The variables are varchar variables */nm1 = 'A1';nm2 = 'B1';mn3 = 'C1';nm4 = 'X';nm5 = 'A!X';nm6 = 'C!X';The following table displays dynamic and explicit name resolution. It alsoshows the behavior for a variety of callframe statements using theassumptions described in this section. It also illustrates the behaviordifferences between dynamic and explicit name resolution.Statement From AppA From AppB From AppCcallframe A1 calls A!A1 compile warningand runtime errorcompile warningand runtime errorcallframe :nm1 calls A!A1 calls A!A1 calls A!A1callframe B1 calls B!B1 calls B!B1 compile errorcallframe :nm2 calls B!B1 calls B!B1 calls B!B1callframe C1 calls C!C1 calls C!C1 calls C!C1callframe :nm3 calls C!C1 calls C!C1 calls C!C1callframe X calls A!X calls B!X calls C!Xcallframe :nm4 calls A!X calls A!X calls A!Xcallframe A!X calls A!X compile error compile errorcallframe :nm5 calls A!X runtime error runtime errorcallframe C!X calls C!X calls C!X calls C!Xcallframe :nm6 calls C!X calls C!X calls C!X24 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!