Forum Discussion

daverooneyca's avatar
9 years ago

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?

2 Replies

  • 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.
  • Is there a way to pass a Bitmap within the associative array?