Assume a situation that I have predefined some macros like \abc, \aotherc, ... etc. The macro is just like \a#1c, and #1 is defined by \x.
In other words, I don't know which of \abc, \aotherc, ... to be used, but all these macros have been defined. then how can I write \a\xc with \x expanded first, and then the whole macro expands to the correct content?
It is my naming convention that causes this problem. Adjusting the order of the subnames just fix it. But I wonder if there is a way to solve this.
\def\abc{abc}
\def\aotherc{aotherc}
\def\x{b}
My attemp
\expandafter\a\csname \x\endcsname c
The first comment is right. Write like this
\csname a\x c\endcsname
then it will expand correctly. My last run came with other problem.

\csname a\x c\endcsname. – Paul Gaborit Nov 14 '19 at 15:22tabularz. – Nov 14 '19 at 15:25\csname a\x c\endcsnamea lot in your package already. So maybe you can explain a bit more the context. – Nov 14 '19 at 15:26