func init // adds using namespace sys.add_use('System') // initialize the type of element this.type = code(sys.get_manager_prop("Type", "TypeName")) // initialize instance sys.add_var(this.name, this.type + '[]') if(isdef("Values")) blk_init.println(this.codename, ' = new ', this.type, '[', d("Size"), '];') else blk_init.println(this.codename, ' = new ', this.type, '[] { ', code(this.props("Values").value.join(', ')), ' };') end end func doConstructor(size) blk.println(this.codename, ' = new ', this.type, '[', d("Size"), '];') end func Array return(this.codename) end func Length return(this.codename + '.Length') end