I have a number of modules with config arrays:
module foo
{
config Int16 buffer[];
config Int bufferMaxSize;
etc...
Then in my .cfg file I have the following code:
foo = xdc.useModule('foo');
foo.bufferMaxSize = 16;
foo.buffer.length = foo.bufferSize;
etc...
My question is: Can you remove this dependance on setting the buffer length in the config file, as well as saving that length in another config value? Is there another meta domain init function where I can set foo.buffer.length = foo.bufferMaxSize so that I don't have to force the module user to do this in the .cfg file?
Thanks