Thursday, June 01, 2006

RobC v2

I've gotten a bit carried away on the demo program. I wasn't satisfied with the function implementation which consisted of a separate command-pattern class per function. For instance, the functions supported were width(), height(), min(), max(), and plot() which amounted to five separate classes as well as the factory-type method to construct the appropriate class.

Thus, RobC now has the concept of invoking a methods in the Java JVM. Function declarations are, of course, now available as well as the return statement.

When putting together these screenshots, I did realize that I'm missing some simple datatype conversions from a number to a string. (Or string and number concatenation.) I have a hunch those will come along at some point.

Anyway, I have attached a v2 IDE screenshot showing a couple of method declarations and the final display showing that a does, indeed, contain 3 squared.

No comments: