EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2016
05:13 PM
Weird: roInt.ifIntOps vs roInt.ifToStr ?
roInt implements 3 interfaces: ifInt, ifIntOps, ifToStr.
The bizarre thing is that both ifIntOps and ifToStr manifest only one and the same method: toStr()!
And it's not that the documentation is wrong here, since i can check both are there:
What's going on here, why the double work?
The bizarre thing is that both ifIntOps and ifToStr manifest only one and the same method: toStr()!
And it's not that the documentation is wrong here, since i can check both are there:
BrightScript Debugger> ? getInterface(1, "ifIntOps"), getInterface(1, "ifToStr")
<Interface: ifIntOps> <Interface: ifToStr>
BrightScript Debugger> ? 1.ifIntOps.toStr(), 2.ifToStr.toStr()
1 2
What's going on here, why the double work?
1 REPLY 1

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2016
10:41 PM
Re: Weird: roInt.ifIntOps vs roInt.ifToStr ?
The ifToStr interface was just added in 7.0 (and a welcome addition, indeed!). I imagine both interfaces use the same function on roInts, in which case there wouldn't be any double work, just backwards/legacy compatibility.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)