Trouble with method call/property access

Mar 25, 2008 at 2:30 AM
You have a nice sample showing how to perform a method call with the syntax.

SET x = SecretComputations.DoComputation1( "foobar" )

[
x => InMsg
Msg
]

This works great, but the other function in the class "DoComputation2" does not seem to work. I get an exception claiming no method exists. Do you have an example script to show this working?

Also, curious as to how property access works on a class. I added a property to the SuperSecretComputationService class, but could not figure out how to get property access working (don't we need an instance of the class here?)

Any help would be appreciated. Great work, thank you for this library!

-Josh
Coordinator
Apr 3, 2008 at 3:55 AM
Hi Josh,

Sorry for delay in responding... was away on vacation last week.

I've fixed property access... should work fine now. Also, the DoComputation2 method in the example service class takes floating point params, so you'll need to explicitly denote those for proper method binding to occur (it relies on Reflection under the covers, natch).


SET x = SecretComputations.DoComputation2( 12.1f, 4.5f )

[
x => InMsg
Msg
]

Grab the latest checkins and give it a go... glad you're using the bits!

JoshL