Hi, Juerd wrote: > Ingo Blechschmidt skribis 2005-02-05 17:19 (+0100): >> ...this seems a bit ugly to me. > > The "signature" part, or the signature itself? Because you'll > encounter lists like this all over Perl 6 code anyway...
I refered to the way the signature is specified, not the signature itself. signature(...) looks like a function/sub call, while it isn't one really. > Defining a sub just to retrieve its signature is wrong, IMnsHO. Subs > should be called. That makes sense... Maybe it should be possible to create Signature objects without creating a sub: my $sig = Signature.new(Int $a, Str $b); # and then Getopt::Auto::parse_args $sig; # use $a and $b But this solution has got the same problems as your's -- how does the parser detect that the argument list to Signature.new is not really an argument list, but a signature? --Ingo -- Linux, the choice of a GNU | Failure is not an option. It comes bundled generation on a dual AMD- | with your Microsoft product. Athlon! |