ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-language
perl6-language
Re: Ignoring parameters
by John Siracusa other posts by this author
Jun 17 2005 4:38PM messages near this date
Re: ./method | Re: Ignoring parameters
On 6/17/05 6:18 PM, Damian Conway wrote:
>  John Siracusa wrote:
> > (BTW, I'm not sure where those "./" thingies came from, but it's what GMail
> > showed in your message.  I'm assuming it should just be ".")
>  
>  No. There's now also a unary ./ operator in Perl 6.
>  
>  Unary . calls a specified method on the current topic.
>  Unary ./ calls a specified method on the current invocant.
>  
>  The point being that methods no longer topicalize their invocant. So you need
>  to use ./ instead of . to call methods on an implicit invocant.

Wow, that..er...how did I miss that?  It looks a lot like running an
executable in the current dir instead of letting the shell search its path.
Was that intentional?  Was this syntax discussed on a mailing list or
elsewhere?  I really liked plain old .foo(), but I guess I'll just use
explicit invocants and look like an old fuddy duddy... :)

(also, at least it's not "/." <shudder>  ;)
-John
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved