@DanielLichtblau I naïvely thought one could do
Block[{$ModuleNumber = 1},
Unique["x"]
]
for the addendum, but... what happened was not pretty:
Mathematica has detected an internal error:
vMessage ENULL
(v9). However, it doesn't crash in v7 and v8 (displays a warning). Any thoughts on why that happened? My guess would be that
$ModuleNumber
is critical to several internal routines and this messed with it and it cannot be
Locked
either, since it needs to be incremented. But somehow I don't think that's right (and I'm not convinced by my explanation) —
rm -rf 13 mins ago