I know that I need to put an internal quantity after \the. I know the expansion is a list of tokens of catcode 12 (except for space characters).
I know the next problem :
\skip0=30pt plus 2pt\relax
a\hskip\the\skip0 minus 1pt b
a\hskip\skip0 b
a\hskip\skip0 minus 1pt b
but in the sources of pgf/tikz, I see for example
\def\pgfgetlastxy#1#2{%
\edef#1{\the\pgf@x}%
\edef#2{\the\pgf@y}%
}%
\pgf@x is often preceded by \the. Why is the necessary in such cases?
Do you know an example with a problem ?