Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Overriding Mathematica function Print

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64252] Overriding Mathematica function Print
  • From: Sascha Kratky <notvalid at notvalid.com>
  • Date: Wed, 8 Feb 2006 03:53:41 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

I need to override the built-in function Print, because I have to
capture the output generated by Print. I am sending the following
definitions to the Mathematica kernel:

      Unprotect[ Print ]; 
      Print[ args___ ] := ...

Once I have overridden Print, how can I later restore the original
built-in function?

Thanks,
Sascha


  • Prev by Date: Re: Defining a derivative that distributes for a function
  • Next by Date: Re: MathGL3d and Mathematica 5.3
  • Previous by thread: Re: Using Map with a function of more than 1 argument
  • Next by thread: Problems with With/Block/Module functions