Hi Bob,
> is there a concept of a subroutine in F-Script? so a full app could be
created?
F-Script blocks allow you to write F-Script "subroutines". Blocks can takes
parameters and return a result, they have local variables, and also a few
more interesting capacities (see "bBock closure" in the Smalltalk
literature).
> or is it meant to be included in a 'real' app using C or Java and called
> from there?
Blocks can be invoked from F-Script code, and also from Objective-C. In
addition, F-Script comes as a framework you can link with your own
applications. This makes it relatively easy to build an "Objective-C" app
for which most of the code is in fact written in F-Script.
> but it is interactive, so how used from an app that feeds it input and
gets
> output from it? i feel like i don't get it :)-:(.
F-Script gives you the option of accessing the scripting engine
programmatically. See the FSInterpreter class documentation.
Best,
Phil
|