What is this

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
Arne Vajhøj said:
Can you give a little bit more context?

Arne

This name is a field in a class.
What is the difference if I write name or 'name'

//Tony
 
Tony said:
This name is a field in a class.
What is the difference if I write name or 'name'

Then name (according to you) is the identifier of a field in a class. Whereas
'name', on its face, appears to be an invalid character literal. They would not
be interchangeable syntactically. And so your question seems to make no sense
at all.
 
Tony Johansson said:
This name is a field in a class.
What is the difference if I write name or 'name'

You originally wrote name enclosed in double quotes, then enclosed in
single quotes. In your followup, you wrote name includes in just single
quotes, which is quite different.

My best guess is that you saw
'name'
or
"name"
in a book something, and that you were supposed to remove the quotation
marks -- just as if I told you to say "hello", I wouldn't expect you to
say "quote hello quote".

You'll need to give more context. Where did you see name in quotation
marks, what *exactly* did it look like, and what did the surrounding
text say?
 
Back
Top