MathGroup Archive 2002

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

Search the Archive

Problems with ToString[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35937] Problems with ToString[]
  • From: "Hermann Schmitt" <schmitther at netcologne.de>
  • Date: Thu, 8 Aug 2002 06:06:28 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,
I have the following program:

new[par___] := (
 Print["The Parameters: ", par];
 Print["The Parameters: ", ToString[par]];
   );
 new[2, 3, "Schmitt"];

and get the following result:

The Parameters: 23Schmitt
ToString
ToString::nonopt:
   Options expected (instead of Schmitt) beyond position 2 in
    ToString[2, 3, Schmitt]. An option must be a rule or a list of rules.The
Parameters: ToString[2, 3, Schmitt]
In[14]:=

According to the Mathematica book no further parameters are necessary for
ToString[].  Why does the system not like "Schmitt" as parameter?
My final aim is to construct a function call with variable function name and
the parameters "par"




  • Prev by Date: One to the power Infinity
  • Next by Date: AW: How can I write inside the frame.
  • Previous by thread: Re: Re: One to the power Infinity
  • Next by thread: Re: Problems with ToString[]