Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Dev
visit() and go() doc patch
 

Index | Next | Previous | View Flat


emazep at gmail

Dec 28, 2011, 9:11 PM


Views: 410
Permalink
visit() and go() doc patch

Though formally correct, the visit() and go() documented signatures can
be misleading, since they say (e.g. for visit):

$c->visit( $action [, \@captures, \@arguments ] )
...

while visit() can be called also with a single arrayref argument, with
the following /unexpected/ semantics:

$c->visit( $action, \@arguments );

This is a small doc patch to clarify that (well, unless there is some
reason to keep it undocumented - but this way the user can easily be
misled).

It should also close the #59601 RT ticket:
https://rt.cpan.org/Public/Bug/Display.html?id=59601

Cheers
-Emanuele
Attachments: visit-go-doc.patch (1.00 KB)

Subject User Time
visit() and go() doc patch emazep at gmail Dec 28, 2011, 9:11 PM
    Re: visit() and go() doc patch diment at gmail Dec 28, 2011, 9:35 PM
    Re: visit() and go() doc patch pagaltzis at gmx Dec 29, 2011, 4:17 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.