Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370282

Summary: Program.global should support arrays
Product: [Technology] RTSC Reporter: Dave Russo <d-russo>
Component: CoreAssignee: Dave Russo <d-russo>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: dfriedland, sg
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dave Russo CLA 2012-01-31 17:00:11 EST
It should be possible to create a global array of primitive types (ints, floats, strings) or module instances.  For example, the following should be allowed in a .cfg script:

    var Mod = xdc.ueModule("some.interesting.Mod");
    var m1 = Mod.create();
    var m2 = Mod.create();
    Program.global myInstanceArray == [m1, m2];
    Program.global myIntArray == [1, 2, 3];
    Program.global myStringArray == ["this", "is", "easy"];