On Jul 15, 2008, at 10:29 PM, Bill Ricker wrote:

We did some specs for new main loop.


Hi! I had volunteered to write up the algorithm, and last night I started doing that, but ran into several things we hadn't thought of. I was able to fix most of them, although it made things a bit more complicated, and there's still an issue for the separator.

I've attached my code, which I know sucks, but at least mostly works (it doesn't print the separator when $before == $after == 0).

An actual implementation of this should probably use a circular array (size $before + $after + 1, do all offsets modulo this number). Also, Uri, I must be missing something about references to scalars, because every time I tried to make the last element a pointer, and then deference it, I got an error about strict 'vars', and if I didn't use strict, it didn't work. So I must be confused about something.

Ricky




The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.


_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to