This project has moved and is read-only. For the latest updates, please go here.

Express Symbols Return Dynamic

Jun 4, 2015 at 8:53 AM

Have a registered symbol, that has a getter method that returns a dynamic type. the getter can return a long, a sting, a double or bool.

The problem is, that i get a message with an expression, even though the dynaics are returned as double, that expression editor treats them as Object, and e.g. using a "+" between to double dynamic values causes a "Object does not have ADD xxx".

Any way to get the dynamic object a number in the evaluator when needed?
Jun 6, 2015 at 5:19 AM
Can you provide some sample code? Dynamics are inherently object types with some sugar coating on. If you use them in a dynamic expression then they should be resolved at runtime.

Otherwise if you know how they are going to be used in a certain context then you can explicitly cast them.