|
-
Mar 18th, 2004, 06:21 AM
#1
worrying
Did you know you can use the word "value" as a variable name even though it is a keyword?
Is this a bug? I'm going to have to check all my old apps and make sure this hasn't occurred.
It doesnt seem to make any difference to the app but its a bit ambiguous isnt it? I didnt realise until I saw it highlighted blue by intellisense just now!
I don't live here any more.
-
Mar 18th, 2004, 07:44 AM
#2
I don't think value is an actual keyword. If you look up "C# keywords" in help, value is not listed as one of them.
So why is it highlighted blue, you ask? I dunno.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 18th, 2004, 09:51 AM
#3
Some structs and classes are defined as value types meaning... well I don't fully know, but I'm pretty sure you shouldn't be allowed to go around calling variables "value". That's just naughty.
I don't live here any more.
-
Mar 21st, 2004, 11:54 PM
#4
Frenzied Member
Value is not really a keyword since you cant declare a variable with it. Its only use when you declare properties, thats why its ambiguous.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|