I found myself wanting to use a construct of the following type:
\newsavebox{\mybox}
\newcommand{\mycommand}[1]{\savebox{\mybox}{#1}\reflectbox{\usebox{\mybox}}}
The problem is that I want the content of the box to be typeset in the "correct" mode. In other words, if \mycommand is used in math mode, #1 should automatically be typeset in math mode. Furthermore, if \mycommand is used inside a subscript in math mode, then #1 should be typeset as a subscript, etc. Essentially, if it weren't for the presence of \reflectbox, \mycommand should be completely "transparent".

\newcommand{\mycommand}[1]{\reflectbox{#1}}? (I ask as making a command that saves to a box, preserving the current tex/subscript style, probably is not possible. (without a lot of effort) – David Carlisle May 16 '15 at 21:45\reflectboxif\mycommandis used in math mode (and also respect the level). What “more complicated” things would you do with the box? – egreg May 16 '15 at 21:56\cevcommand in the other question. – egreg May 16 '15 at 23:13