MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

How to determine whether a message has been switched off?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71455] How to determine whether a message has been switched off?
  • From: "Andrew Moylan" <andrew.j.moylan at gmail.com>
  • Date: Sun, 19 Nov 2006 01:10:10 -0500 (EST)

Hi all,

When writing algorithms, I sometimes decide to disable a particular
message using the function Off[]. At the end of my routine, I re-enable
the message using the function On[].

Unfortunantely, if the message in question has already been turned off
(by some other function, for example), then my code will have the
unfortunate side-effect of switching it back on. What I really want is
to disable the message for the duration of my routine, and then set it
back to its original state at the end of my routine.

Thus: Is there some way to determine whether a message has been
switched Off[] (or On[])?

Cheers,
Andrew


  • Prev by Date: Re: sparsearray and random
  • Next by Date: Coercion into series
  • Previous by thread: Re: Re: Why does this lead to an answer with complex numbers?
  • Next by thread: Re: How to determine whether a message has been switched