Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Perl6 dot syntax (for methods?)

by rg0now (Chaplain)
on Feb 28, 2005 at 13:50 UTC ( #435052=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl6 dot syntax (for methods?)
in thread Perl6 dot syntax (for methods?)

So, quicksort and say are methods of the array class? Or of the base object class?

I think both of them are methods of the array abstract base class. I mean, similar semantics and syntax is pretty common, and very familiar in other scripting languages. At least, Python does this:

>>> q=[2,3] >>> p=[1,q,3] >>> p[1].append('xtra') >>> p [1, [2, 3, 'xtra'], 3]

rg0now

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://435052]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2019-08-17 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (134 votes). Check out past polls.

    Notices?