I noticed that I can call ModScript methods with or without the empty parens. I.e the following all work:
<code>
var x1=Shell.Item.GetId ;
var x2=Shell.Item.GetId() ;
var x3=Shell.Item().GetId ;
var x4=Shell.Item().GetId() ;
</code>
Is that how it's supposed to be?

In this ChaiScript note on github, the author (Jason Turner) says:
[quote]There is significant overhead for stepping out of the function context and searching the global context for a variable, which has particular impact in a multithreaded environment. For that, and other reasons, use of global variables is discouraged in general and currently only available to create from the C++ API.

We strongly considered not allowing them at all, but decided it was necessary to support things like for an overused example) PI=3.14159265358979323[/quote]

Is that an accurate assessment for ModScript? If so, does it apply to variables only, i.e.

Does anyone have any good resources for beginners when it comes to modscript? I'm unfortunatley not familiar with modscript, chaiscript, or even C++; on top of that my Object Oriented Programming experience is rather limited as well. Any info is helpful... I tried following the modscript series on Serena Central, but it went from 0 to 60 from post 1 to 2. I'm starting to piece together some simple scripts based on the examples on serena central as well as in the composer help, but it's a far cry from the functionality i'm looking to build with ModScript.

So... still not much activity here. So I just write about my experience with modscript. Today afternoon I spend some time on parsing an XML file which contains field names and their content (actually a word document, which was saved as XML file). Goal will be to fill the database fields of a SBM primary item with the values from the XML file. I decided to convert the XML to JSON first and then use the Modscript JSON parser to convert everything into an object tree.
Actually the Vector and Map objects are much more powerful compared to the Appscript dic object. Once I had this tree in the Modscript memory, I wrote a simple depth first search procedure to collect the filename-value pairs.

Still my summery of Modscript features and language elementes is a good help while coding..

Hi Neha, Hi Lisa
Not much of activity here...
The question is, how can we put some life into this group? And: Can we extend this group to Modscript also?
Lisa, what is your interest? Appscript only or also Modscript?