Why does
1/0 $MessageList ComplexInfinity
whereas
Block[{}, 1/0; $MessageList ] Power::infy
?
At first sight I supposed that this disparity could be related to an answer I got here subtleties about variable shadowing in Block[] "Symbols are created at the instant that they are read -- not when they are evaluated.". But, may be, this time we are facing a totally different problem because $MessageList exists rigth before Block[] is read.
Have I missed some point explained in Messages leak out from Block ?
Thanks once more !!
1/ 0; $MessageList.Or have I missed something? $\endgroup$CompoundExpressioninBlockand two separate lines in first code area.$MessageListremembers only current execution line $\endgroup$