Named Parameters

Peter Haworth pete at
Fri May 4 22:03:45 EDT 2012

I seem to recall somewhere in the dim distant past that some languages have
a syntax where function and procedure calls can have named parameters
rather than positional ones.

function doIT p1,p2,p3,p4,p5,p6,p7,p8,p9,p10
end doIT

put doIT("abc",p3="xyz", p10="def") into tVar

When functions have a large number of possible parameters but not all of
them are required, this is a great way to avoid having to count commas in
the calls to them.

I don;t think LC has any such syntax built in but wondering if anyone has
tried to implement something similar?

lcSQL Software <>

More information about the Use-livecode mailing list