Parameters with this mode are initialized
with the argument provided by the caller, but treated as constants inside the procedure. They can
be read, but not modified. The second parameter has mode out. Parameters with this mode are in
an uninitialized state when the procedure begins, but they can be used otherwise as ordinary variables
inside the procedure. Whatever value is assigned to an out parameter by the time the procedure
ends is sent back to the calling environment. The third parameter has mode in out. Parameters
with this mode are initialized with the argument provided by the caller, and can also be
modified inside the procedure. The changed value is then returned to the caller to replace the
original value. Keep in mind that, unlike in C, modifications to parameters in Ada (when allowed
by the parameter mode) affect the arguments used when the procedure is called.
Parameters with this mode are initialized
with the argument provided by the caller, but treated as constants inside the procedure. They can
be read, but not modified. The second parameter has mode out. Parameters with this mode are in
an uninitialized state when the procedure begins, but they can be used otherwise as ordinary variables
inside the procedure. Whatever value is assigned to an out parameter by the time the procedure
ends is sent back to the calling environment. The third parameter has mode in out. Parameters
with this mode are initialized with the argument provided by the caller, and can also be
modified inside the procedure. The changed value is then returned to the caller to replace the
original value. Keep in mind that, unlike in C, modifications to parameters in Ada (when allowed
by the parameter mode) affect the arguments used when the procedure is called.
การแปล กรุณารอสักครู่..
