Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Re: bug in IntegerPart ?

  • To: mathgroup at
  • Subject: [mg47987] Re: [mg47968] Re: bug in IntegerPart ?
  • From: "J. McKenzie Alexander" <jalex at>
  • Date: Tue, 4 May 2004 07:03:19 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

On May 4, 2004, at 6:08 am, Bill Rowe wrote:

>> NO function affects evaluation of its arguments, or if one did, what 
>> would that look like?
> How about Plot? Plot does evaluate its arguments in a non-standard way 
> as compared to say Exp or Sqrt. So, some functions do affect the way 
> their arguments are evaluated.

In addition, some functions can have the attribute HoldFirst, whose 
sole purpose is to affect the evaluation of arguments. In the case of 
HoldFirst, the first argument isn't evaluated. Set has the attribute 
HoldFirst because if you evaluate

	Set[m, 2*m]

you probably want to assign 20 to m, rather than attempt to assign 20 
to 10, which will produce an error because 10 isn't an lvalue.


Dr J. McKenzie Alexander
Department of Philosophy, Logic and Scientific Method
London School of Economics and Political Science
Houghton Street, London WC2A 2AE

  • Prev by Date: Re: Do Modules Produce Side Effects?
  • Next by Date: Re: Do Modules Produce Side Effects?
  • Previous by thread: Re: bug in IntegerPart ?
  • Next by thread: Re: bug in IntegerPart ?