Re: Same-named arguments

2006-08-23 Thread Juerd
Carl Mäsak skribis 2006-08-23 21:54 (+0200): > Juerd (>), Michael Snoyman (>>): > >> sub mysub($foo, @foo, %foo) { > >I hope this is a compile time failure. If not, I'd expect a warning, at > >least. > Why? It looks reasonable IMHO. Because arguments are passed without sigil, and here you'd be for

Re: Same-named arguments

2006-08-23 Thread Carl Mäsak
Juerd (>), Michael Snoyman (>>): > sub mysub($foo, @foo, %foo) { I hope this is a compile time failure. If not, I'd expect a warning, at least. Why? It looks reasonable IMHO. // Carl

Re: Same-named arguments

2006-08-23 Thread Juerd
Michael Snoyman skribis 2006-08-23 12:10 (-0700): > sub mysub($foo, @foo, %foo) { I hope this is a compile time failure. If not, I'd expect a warning, at least. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.

Same-named arguments

2006-08-23 Thread Michael Snoyman
Hi, I'm just starting with Perl 6. I was reading through "Perl 6 and Parrot Essentials" (finally arrived yesterday from Amazon; very happy) and I was wondering what would happen if you had a parameter list that included variables of a different type but the same name (ie, $foo, @foo). I wrote a

Re: a practical question

2006-08-23 Thread Steffen Schwigon
Richard Nabil Hainsworth <[EMAIL PROTECTED]> writes: > But I want to start doing real things. Which for me requires gui > toolkits. > > I have used Tk with perl5 and I am looking at WxWidgets. > > WxWidgets (and the more commercial Qt) exist as C++ classes, > although WxPerl is a set of wrappers ar