daverooneyca
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2017
11:23 AM
Passing Associative Array with Functions to Interface Strips Them?
I have a situation where I've created an object using an associate array and inline functions and I need to pass it to a SceneGraph component via an interface using the "assocarray" type. When I try to do that the functions are "stripped" from the object's associative array and replace with "invalid".
Is that behaviour expected?
Is that behaviour expected?
2 REPLIES 2
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2017
11:31 AM
Re: Passing Associative Array with Functions to Interface Strips Them?
Yes, that is a limitation of RSG. Node fields do not support function types in any way - regardless if direct or deeply-nested in roAA/roArray. Current implementation strips them silently on assignment.
jackhand
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2017
02:15 PM
Re: Passing Associative Array with Functions to Interface Strips Them?
Is there a way to pass a Bitmap within the associative array?