in reply to What's the construction?

This is also an example of code that definitely needs or needed a lot of documentation. And maybe re-coded so that it's even more clear what's going on here. Any bit of source that can't be "instantly and accurately understood," even by a less-experienced person, can be a big maintenance problem that outweighs all well-intended "cleverness."