>Unfortunately, I cannot put unbalanced {'s and }'s into the begdef and
>enddef parameters of \newenvironment.
I must correct myself, the begdef and enddef parameters tolerate opening
and closing braces. The following code seems to work as expected:
\newenvironment{storetoks}{\global\mytoks{}{}}
Yours,
Alexander