Variadic function: Difference between revisions

Added Oz.
(→‎{{header|Lua}}: lang tags)
(Added Oz.)
Line 589:
=={{header|OCaml}}==
This is typically the kind of things that are impossible in OCaml, because it is a '''strongly statically typed language'''.
 
=={{header|Oz}}==
This is only possible for methods, not for functions/procedures.
<lang oz>declare
class Demo from BaseObject
meth test(...)=Msg
{Record.forAll Msg Show}
end
end
 
D = {New Demo noop}
Constructed = {List.toTuple test {List.number 1 10 1}}
in
{D test(1 2 3 4)}
{D Constructed}</lang>
 
=={{header|Perl}}==
Anonymous user