Christophe Weblog Wiki Code Publications Music
fix compilation of x[y,]
authorChristophe Rhodes <csr21@cantab.net>
Tue, 20 Nov 2012 22:36:39 +0000 (22:36 +0000)
committerChristophe Rhodes <csr21@cantab.net>
Tue, 20 Nov 2012 22:38:17 +0000 (22:38 +0000)
commitcc42bfe8c3d5947b34c3d497260d8411b1f4442b
treea47f7933737f56c4aa26b40e8007ad35c63c5d3a
parent2a4f3c6ca11bb324919df918744092d1cb339f2d
fix compilation of x[y,]

Oh boy.  I do not pretend to totally understand what is going on, but
what seemed to be happening is that somehow when walking the parse
tree to adjust srcrefs to the real file position rather than the
string position, the `empty' space in x[y,] was turning from a
zero-element name to a missing object, and then subsequent attempts to
evaluate the missing object (or even return it) were failing.

The workaround is to short-circuit the process for name objects, which
are atomic and (empirically) do not have srcrefs attached anyway and
so can be returned without modification.
swank.R