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"