
lkrocek
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2018
04:32 AM
global as a reserved word
Reserved Words
it seems I miss global word in list of reserved words, cause my app crash if I will use it:
with this result:
it's kinda important thing because eslint is not discovering it as well and then it says everything is ok.
it seems I miss global word in list of reserved words, cause my app crash if I will use it:
sub init()
global = "x" 'originally I wanted to use: global = getGlobalAA()
end sub
with this result:
Type Mismatch. (runtime error &h18) in ...
it's kinda important thing because eslint is not discovering it as well and then it says everything is ok.
Platforms integration specialist
====================
@ https://suite.st/
====================
@ https://suite.st/
7 REPLIES 7

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2018
06:55 AM
Re: global as a reserved word
Good to know. I guess you can just call it globl or something like that. 🙂

lkrocek
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2018
08:02 AM
Re: global as a reserved word
I have no problem with naming 😄 I just don't like it's undocumented. Nobody knows.
Platforms integration specialist
====================
@ https://suite.st/
====================
@ https://suite.st/
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2018
08:39 AM
Re: global as a reserved word
This was from one of the original BrightScript Reference Manuals (PDF):
"BrightScript does not support global variables. Except, there is one hard-coded global
variable "global" that is an interface to the global BrightScript Component. The global
component contains all global library functions. "
I don't know if that made it into the online version of the documentation or not.
-JT
"BrightScript does not support global variables. Except, there is one hard-coded global
variable "global" that is an interface to the global BrightScript Component. The global
component contains all global library functions. "
I don't know if that made it into the online version of the documentation or not.
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.

lkrocek
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018
01:10 AM
Re: global as a reserved word
"renojim" wrote:
This was from one of the original BrightScript Reference Manuals (PDF):
"BrightScript does not support global variables. Except, there is one hard-coded global
variable "global" that is an interface to the global BrightScript Component. The global
component contains all global library functions. "
I don't know if that made it into the online version of the documentation or not.
-JT
Wow! there is a manual?! 😄 even is more complex then roku online docs, thanks a lot! but still it could be updated in sdkdocs, please.
Platforms integration specialist
====================
@ https://suite.st/
====================
@ https://suite.st/
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018
02:56 PM
Re: global as a reserved word
If you post a comment in here https://forums.roku.com/viewtopic.php?f=34&t=69731 a fairy or gremlin might come along and fix it
aspiring
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2018
10:50 AM
Re: global as a reserved word
"lkrocek" wrote:
Wow! there is a manual?! 😄 even is more complex then roku online docs, thanks a lot! but still it could be updated in sdkdocs, please.
that's between the lines in
https://sdkdocs.roku.com/display/sdkdoc ... ture-Scope
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2018
10:47 PM
Re: global as a reserved word
I figured if anyone could find it in the online docs RokuNB could. Searching the old PDF for "global" I found the passage in a matter of seconds. Searching online... well, I never did find it in the 30+ seconds I allocated for the search. 🙂 I'm just not willing to do a search and then another within those search results.
-JT
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.