|
6.3.7 Return type of procedures
Although the SINGULAR language is a strongly typed programming
language, the type of the
return value of a procedure does not need to be specified. As a
consequence, the return type of a procedure may vary, i.e., may, for
example, depend on the input. However, the return value
of such a procedure may then only be assigned to a variable of type
Furthermore, it is mandatory to assign the return value of a procedure
to a variable of type
On the other hand, more than one value can be returned by a single
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |