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

CleanSlate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71072] CleanSlate
  • From: dh <dh at metrohm.ch>
  • Date: Wed, 8 Nov 2006 06:12:10 -0500 (EST)

Hello All,

$Version: 5.1 for Microsoft Windows (October 25, 2004)

can anybody explain the strange behaviour of the usefull routine 

CleanSlate from the package: Utilities`CleanSlate`?

Consider:

Remove[a,x]

f[]:=Module[{x,a},]

CleanSlate[]

this works fine. If one defines an argument by f[_] this still works. 

However, as soon as I use a named argument,e.g.:

  f[xx_]:=Module[{x,a},]

CleanSlate complains:

Remove::relex: Cannot remove lexical symbol a$ except automatically 

(when a is removed).

Remove::relex: Cannot remove lexical symbol x$ except automatically 

(when x is removed).

Further, if one replaces the one letter variable name a by aa, the 

message about aa is not created. Also no message for: 

f[a_]:=Module[{x},] but we get a message for f[xx_]:=Module[{x},]

Daniel



  • Prev by Date: Re: Insertion into sorted list
  • Next by Date: Re: Possible simple bug in NMaximize
  • Previous by thread: Re: Efficiency of repeatedly appending to a List
  • Next by thread: Re: Advanced nonlinear integro-differential equation