>>>> "mb" == Martin Buchholz
<martin(a)xemacs.org> writes:
>>>> "SJT" == Stephen J Turnbull
<turnbull(a)sk.tsukuba.ac.jp> writes:
SJT> been lobotomized. Again, IUTPC.
mb> ^^^^ ^^^^^ what? ?????
"If I Understand The Process Correctly." (I seem to have dropped an I
there.)
mb> You mean
mb> (defmacro fast-marker-position (x) (+ x 0))
mb> as a speed hack?
I had more in mind something like
(defmacro total-line-width (this-start column-width)
`(progn
(do-side-effects ,this-start ,column-width)
(+ ,this-start ,column-width)))
which might get called as (total-line-width (current-column) 0) at the
right margin, since there's no space to add another text column.
AFAICT what the byte compiler sees after macro expansion is
(progn
(do-side-effects (current-column) 0)
(+ this-start 0))
which gets optimized to
(progn
(do-side-effects (current-column) 0)
this-start)
SJT> I thought it was clear that that's what worried me all along.
mb> I still think optimizing (+ x 0) to x was the Right Thing to
mb> do.
*shrug*
Maybe this will not occasion a bug report for decades. But
mathematical certainty is such a rare and wonderful thing, I thought
I'd advocate it.
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
_________________ _________________ _________________ _________________
What are those straight lines for? "XEmacs rules."