Re: Ignoring parameters
by Larry Wall other posts by this author
Jun 17 2005 11:09AM messages near this date
Re: Ignoring parameters
|
sub my_zip (...?) {}
On Fri, Jun 17, 2005 at 09:19:17AM +0200, "TSa (Thomas SandlaÃ?)" wrote:
: Ohh, does that mean that ::class can be used as a type
: inside the body? E.g.
:
: method template ( FooClass ::foo :)
: {
: my foo $f;
:
: ... # use $f
: }
Certainly. It's exactly the same situation as a &func formal parameter
allowing you to call func without the &. The :: is a real sigil in that
regard, and function parameters are real declarations.
Larry
Thread:
Gaal Yahas
Luke Palmer
John Siracusa
Damian Conway
John Siracusa
David Storrs
Matthew Zimmerman
Juerd
Matthew Zimmerman
Damian Conway
David Storrs
Juerd
Kurt
Jonathan Scott Duff
Juerd
Juerd
Kurt
Juerd
John Siracusa
John Siracusa
Adam Kennedy
Juerd
John Siracusa
Adam Kennedy
John Siracusa
Darren Duncan
John Siracusa
Juerd
Juerd
Darren Duncan
John Siracusa
John Siracusa
John Siracusa
Damian Conway
Abhijit Mahabal
Damian Conway
Patrick R. Michaud
John Siracusa
Larry Wall
Gaal Yahas
Damian Conway
Patrick R. Michaud
Damian Conway
Patrick R. Michaud
Larry Wall
Patrick R. Michaud
"TSa (Thomas Sandlaß)"
Larry Wall
|