













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














1
while
- do (^) and (^) **repeat
while (^) - (^) do (^) and (^) do (^) -
while )
1. Ada - conditional or unconditional; for any loop;MechanismsUser-Located Loop Control any number of levels
for ... loop
LOOP1:
...
while ... loop
exit when ...
...
...
LOOP2:
end loop
end loop LOOP1;...end loop LOOP2;...exit LOOP1 when .....for ... loop
2. C , C++, and Java -MechanismsUser-Located Loop Control
(^) break
(^) switch
(^) continue
(^) readability
1. Unsigned int constants: Pascal (with colon) Label forms: and Java Some languages do not have them:e.g., Modula-
FORTRAN (no colon)
3. Identifiers in2. Identifiers with colons: ALGOL 60, C
(^) << ... >> : Ada
4. Variables as labels: PL/I difficult to implement^ ^ Highly flexible, but make programs impossible to read andCan be assigned values and passed as parameters
to 1st^ , 2stnd to 2^ nd , 3to 3 (^) rd , etc.rd
(^) In this case, order doesn’t matter. (^) foo(x => my_x, y => my_y)call^ ^ Keyword: Include formal/actual mappings in the
Copy, referencecopied^ ^ By actual implementation of what is IN, OUT, IN-OUT^ By intended semantics
parameters^ ^ Not a good way to implement IN or OUT^ ^ Cheap in most cases^ Reference: Address copied to callerbig arrays)^ Can be expensive for large structures (e.g.,