I think Damian already covered this: it's the semicolon.
sub mysub(String $content; int $key, int $align)
{
...
}
sub callmysub
{
mysub("Testing .. 1, 2, 3!"; key => 1024, align => Module::RIGHT);
}
Which, upon reflection, apparently introduces an "implicit hashparsing"
context for autoquoting hashkeys.
=Austin
--- Piers Cawley <[EMAIL PROTECTED]> wrote:
> So, I was, thinking about the way Common Lisp handles keyword
> arguments. It's possible to declare a Lisp function as follows:
>
> (defun make-para ( content &key alignment font size color ) ...)
>
> The point here is that the first argument is dealt with positionally,
> and subsequent, optional args are dealth with as keyword arguments.
> It
> seems to me that similar functionality might sit well with Perl 6,
> but
> I'm not sure I can think of a good declaration syntax. Calling syntax
> is easy:
>
> make_para $text, font => 'Helvetica,Arial,Whatever';
>
> Any thoughts?
>
> --
> Piers
>
> "It is a truth universally acknowledged that a language in
> possession of a rich syntax must be in need of a rewrite."
> -- Jane Austen?
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/