MathGroup Archive 2005

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

Search the Archive

Re: String[bring] vs "bring"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59353] Re: String[bring] vs "bring"
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 7 Aug 2005 03:46:50 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <dd1itn$1et$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

String is a native data type like Integer, Real, Complex.
You can't build an Integer with Integer[1234] and you can't build
a string with String[bring] because than you have a function call
to String[] with a symbol (bring).

Regards
  Jens

"Kristen W Carlson" <carlsonkw at gmail.com> schrieb 
im Newsbeitrag news:dd1itn$1et$1 at smc.vnet.net...
| Hi,
|
| Question: What is the difference between "bring" 
and String[bring] ?
| What is the utility of making them different?
|
| Question: What is the difference between "bring" 
and String[bring] ?
| What is the utility of making them different?
|
| "bring" ===String[bring]
|
| False
|
| Cases[{"bring"}, _String]
|
| {bring}
|
| Cases[String[bring], _String]
|
| {}
|
| Cases[ToString[bring], _String]
|
| {}
|
| InputForm[String[bring]]
|
| String[bring]
|
| InputForm["bring"]
|
| "bring"
|
| FullForm[String[bring]]
|
| String[bring]
|
| And yet:
|
| Head["bring"]
|
| String
|
| FullForm["bring"]
|
| "bring"
|
| ToString[bring]
|
| bring
|
| InputForm[%]
|
| "bring"
|
| Wha????
|
| Thanks,
|
| Kris
| 



  • Prev by Date: Re: coefficient of a polynomial term
  • Next by Date: Re: Hankel matrix?
  • Previous by thread: Re: String[bring] vs "bring"
  • Next by thread: Re: String[bring] vs "bring"