I have a nice pub / sub system that allows inter object instance and struct communication using messages. So my structs can send or post messages to a queue that then gets forwarded onto one or more different object instances or other structs and vice versa.
This works nicely and for object instances I can wrap my function callback using a 'with' but I can't do that when calling a struct function. I have to instead pass the struct itself actually into the struct function (even though the function is defined within that struct) so that I can then use dot notation to reference my struct variables even though the function referencing them is in that struct.
Is there any possibility of being able to extend 'with' to allow it to work with structs?
Please sign in to leave a comment.