I noticed a behavior regarding lengths under fonstsize changes, which I'm hoping there is a way to circumvent. Consider this MWE:
\documentclass{article}
\begin{document}
\newlength\mylength
\mylength=\baselineskip
\def\stringmylength{\the\baselineskip}
mylength~~~ baselineskip~~~ stringmylength\\
\the\mylength~~~~~~~~\the\baselineskip~~~~~~~~~~~~~\stringmylength\\
\Large
\the\mylength~~~\the\baselineskip~~~~~~~\stringmylength\\
\end{document}
with this output:

When I define a length in a scalable unit (here, as \baselineskip, though the same behavior occurs if I define \mylength as 2.7871ex), I would hope that, upon changing the fontsize, it would scale. But \mylength does not. I seem to recall reading somewhere that lengths are converted to some internal LaTeX unit, which would explain, perhaps, why a length, once specified, doesn't scale with fontsize.
Yet, it is clear that certain lengths do scale, such as \baselineskip, as given in my example.
Also, I could "work around" the problem by storing the length not as a length, but as a string (\stringmylength in my example), though that seems crass to me.
Is there a way to define a LaTeX length which will scale with fontsize changes?
If not, what is the prescribed way of manually modifying lengths to conform to fontsize changes?
[EDIT: As mentioned in a comment to David, and picked up on by egreg, this question concerns the formulation of lengths in the stackengine package]

\mylength, it won't change. Simple as that. – Werner Jul 10 '13 at 15:31