develooper Front page | perl.perl6.language | Postings from June 2005

sub my_zip (...?) {}

Thread Next
Autrijus Tang
June 16, 2005 02:41
sub my_zip (...?) {}
Message ID:
Currently in Pugs &*zip has no signature -- it simply rewrites its
arguments into the listfix ¥ (i.e. Y) function.

That is bad because it can't be introspected, and you can't define
something like that yourself.  It also makes it uncompilable to Parrot
as I don't control the runloop there. :)

Also, currently the following code does not flatten @a and @b together,
which I'm not exactly sure is correct or not:

    zip(@a, @b);

What should &zip's function signature be, if I want to do something like
zip() that handles semicolon lists? 


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About