Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
EnTerr
Roku Guru

setDouble() and the Void: oddity (buglet)

One of these is not like the others:

Brightscript Debugger> ?  4.2#.setDouble(0)
<bsTypedValue: >

Brightscript Debugger> ? 4.2!.setFloat(0)
<UNINITIALIZED>

Brightscript Debugger> ? "42".setString("")
<UNINITIALIZED>

Brightscript Debugger> ? 42%.setInt(0)
<UNINITIALIZED>

Yes, yes - i know the example is gaudy, stylistically - but let's focus on the difference: all these methods have "as void" return type - and i imagine <UNINITIALIZED> of type "<uninitialized>" is what the Void must look like (?). <bsTypedValue: > of type "" on the other hand is something else (undies showing?)

PS. speaking of space oddities, there seems to be another Void as far as B/S subs/functions are concerned:
Brightscript Debugger> f = function() as void: end function: ? f()
invalid

Brightscript Debugger> f = function() as integer: end function: ? f()
0
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.