Ingo Blechschmidt skribis 2005-02-05 18:52 (+0100): > signature(...) looks like a function/sub call, while it isn't one > really.
Macros can do this to a language :) macro signature is parsed /<Perl::Signature>;/ { ... } > Maybe it should be possible to create Signature objects without > creating a sub That would answer the question what .signature returns too. > my $sig = Signature.new(Int $a, Str $b); I wonder if it's possible to have a macromethod. Macros must be parsed at compile time, but what Signature::new is is not known until runtime, is it? > Getopt::Auto::parse_args $sig; I like the idea. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html