> Does the prototype help guide the decision that it is a block and not
   > an anon-hash?

Yes, as it does now in the existing prototype mechanism. For example:

        use Data::Dumper 'Dumper';

        sub takes_block (&) { print "takes_block: ", Dumper $_[0] }
        sub takes_any       { print "takes_any:   ", Dumper $_[0] }

        takes_block { a => print("then\n"), b => 2 };
        takes_any   { a => print("then\n"), b => 2 };

Damian

Reply via email to