jbrave
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2010
11:35 PM
weirdness
This is some code that behaves very strangly:
?mainposter[m.li].poster[itemindex].action="Play"
console output is false
?mainposter[m.li].poster[itemindex].action
console output is Play
Now how is this possible?
?mainposter[m.li].poster[itemindex].action="Play"
console output is false
?mainposter[m.li].poster[itemindex].action
console output is Play
Now how is this possible?
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
4 REPLIES 4
jbrave
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2010
11:42 PM
Re: weirdness
well, I guess brightscript IS case sensitive in string comparisons. I thought it wasn't.
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
jbrave
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2010
11:48 PM
Re: weirdness
Page 6 of the manual, 2.6 and 2.7:
"BrightScript is not case sensitive. "
"BrightScript is not case sensitive. "
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
kbenson
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2010
12:00 AM
Re: weirdness
As a language, no it's not. Strings are, by the nature of their most common encodings, case sensitive. This is a good thing, as if strings were case insensitive, there's little you can do to get case sensitive behavior, and what could be offered by the language would be cumbersome. Getting case insensitive matching from case sensitive strings is trivial, just upper or lowercase each string before matching.
-- GandK Labs
Check out Reversi! in the channel store!
Check out Reversi! in the channel store!
jbrave
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2010
03:20 AM
Re: weirdness
Yeah, I just took that line as covering the whole language. Fortunately I was pretty consistant about case, except in a couple of places, even though I made the incorrect assumption about it from the start.
- Joel
- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!