in reply to Re: An (almost) useful idiom; needs work.
in thread An (almost) useful idiom; needs work.

You still miss the point! Which was to use the inherent state memory of the bistable operator in one of its forms, '..' or '...' to replace the need for using a variable and an if statement to control the capture.

Saying that you can do it "this other way", doesn't progress the idea.


Examine what is said, not who speaks.

  • Comment on Re: Re: An (almost) useful idiom; needs work.

Replies are listed 'Best First'.
Re: Re: Re: An (almost) useful idiom; needs work.
by tachyon (Chancellor) on Dec 22, 2002 at 11:11 UTC

    Oh well if 12 lines of code that provide an efficient, elegant (if I do say so myself) and generic solution to the problem are worse than a couple of dozen lines that don't work, use cut and paste, parallel arrays and that would require sym refs to access in some sort or scalable fashion.....

    The single variable $token is a metastable operator (if you want to nit pick) and performs far more than a simple flag function as it is also the index key to the hash of arrays.

    In my world problem->solution == happiness

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

    A reply falls below the community's threshold of quality. You may see it by logging in.