A student of mine pointed out to me that if we define ordinal exponentiation the usual way (by recursion), then we have $0^0=1$ (which is fine), and thus $$ 0^\omega=\sup\{0^n:n<\omega\}=1, $$ instead of the expected answer $0$.
What is the common resolution of this issue?
You probably just need to define $0^\omega$ as the "limit" of the $0^n$ for $n < \omega$, instead of just the supremum. Or you can define $0^\beta$ as a special case in the definition of the exponentiation.
For any ordinal $\alpha$ other than $0$, the sequence $\alpha^n$ is increasing so the limit of the sequence is its sup. But of course for $\alpha = 0$ we get a decreasing sequence $(1, 0, 0, 0\dots)$ and its limit is its minimum, which is $0$.