Scarily enough, I think this used to actually be somewhat common place and is why many functions were not reentrant.