Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Scope-modifiers/Eiffel/scope-modifiers.e
Normal file
21
Task/Scope-modifiers/Eiffel/scope-modifiers.e
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
feature
|
||||
some_procedure(int: INTEGER; char: CHARACTER)
|
||||
local
|
||||
r: REAL
|
||||
i: INTEGER
|
||||
do
|
||||
-- r, i and s have scope here
|
||||
-- as well as int and char
|
||||
-- some_procedure and some_function additionally have scope here
|
||||
end
|
||||
|
||||
s: STRING
|
||||
|
||||
some_function(int: INTEGER): INTEGER
|
||||
do
|
||||
-- s and Result have scope here
|
||||
-- as well as int (int here differs from the int of some_procedure)
|
||||
-- some_procedure and some_function additionally have scope here
|
||||
end
|
||||
|
||||
-- s, some_procedure and some_function have scope here
|
||||
Loading…
Add table
Add a link
Reference in a new issue