Function prototype: Difference between revisions

initial PL/I example
(Go solution)
(initial PL/I example)
Line 381:
A routine may make a named parameter mandatory using exclamation mark. (This is more useful in multi subs than in stubs though.)
<lang perl6>sub foo ($, :$option! --> Int) {...}</lang>
 
=={{header|PL/I}}==
<lang PL/I>
declare s1 entry;
declare s2 entry (fixed);
declare s3 entry (fixed, float);
 
declare f1 entry returns (fixed);
declare f2 entry (float) returns (float);
declare f3 entry (character(*), character(*)) returns (character (20));
</lang>
 
=={{header|Racket}}==