On Sat, 8 Jan 2005 21:05:20 +0100, St�phane Payrard <[EMAIL PROTECTED]> wrote:
> Anyway the particular length of variables names was not the subject of
> my mail, but a good syntax for aliasing name in signatures.
Hmm... how about abducting the -> operator and using default variable
initialization? Perhaps we can borrow a page out of the K&R C book.
Lets say I take the -> operator and make it proper in these cases:
sub canon( $subjet, $complement)
-> $s = $subjet{$*Global}, $c = $complement
{
my @foo = ...;
for @foo -> $bar; $remaining = @foo.elems {
# $bar contains an element, $remaining contains the number of
elements in @foo
# or any expression I want, but it's block-scoped here
}
}
How's that?
Ashley