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
proposal: binding with a function
by B=C1RTH=C1ZI_Andr=E1s other posts by this author
Jun 14 2005 5:06AM messages near this date
Re: Assigning Proxy objects | Re: proposal: binding with a function
Hi,

As I know, for binding, you can use the := operator, and just this:

   $a := $b;

I would like to make a proposal, based on Ruby[1]:

   alias $a, $b;

It's a fun:

   sub newline {
 	"\n" x $_;
   }

   alias newlines, newline;

So you can write:

   print 5.enters;

Currently, you have to write it a more "uglier" way:

   my &newlines := &newline;

Anyway, char '&' is really neccesary there? It should work w/o it, too, as 
I think. Now - in Pugs - it doesn't.

Bye,
   Andras

[1] http://www.zenspider.com/Languages/Ruby/QuickRef.html#29
Thread:
B=C1RTH=C1ZI_Andr=E1s
Larry Wall
Damian Conway
Ingo Blechschmidt
Juerd
Carl Franks
B=C1RTH=C1ZI_Andr=E1s
B=C1RTH=C1ZI_Andr=E1s
BÁRTHÁZI András
Brent 'Dax' Royal-Gordon
BÁRTHÁZI András
Brent 'Dax' Royal-Gordon
BÁRTHÁZI András
Abhijit Mahabal

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