develooper Front page | perl.perl5.porters | Postings from July 2004

Re: optimizing Short circuiting sort method based on [M]

From:
david nicol
Date:
July 21, 2004 14:59
Subject:
Re: optimizing Short circuiting sort method based on [M]
Message ID:
1090447134.995.20.camel@plaza.davidnicol.com
On Wed, 2004-07-21 at 08:14, Nicholas Clark wrote:
> > I wonder if this could be turned into yet another context -- "reverse
> > list" context -- causing any returning array to get reversed on the
> > stack before being returned, in a lighter way than calling the reverse
> > function.  Just another idea.
> 
> Based on the number of regression tests that I broke while implementing
> this, I don't think that it's a very common scenario, so would be complicating
> the general case for something rather specific and very rare. Plus it's unclear
> how to make any of it work in a backwards compatible way.
> 
> Nicholas Clark

I hope you had fun trying.

How impossible is it to find out the size of an Lvalue array?  I'm
imagining defining the true value of  wantarray() function to be
a reference to the array that is to be filled by the result.

Is that possible?.


-- 
david nicol
    "People used to be able to read my thoughts, but
it doesn't appear to work any more. Should I eat less cheese?"
                                               -- Elizabeth Woods




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About