https://bugzilla.novell.com/show_bug.cgi?id=410048 Summary: YaST Documentation, YCP Language, The bracket operator, Mixed map/list access - Example is wrong Product: openSUSE.org Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: Minor Priority: P5 - None Component: Documentation AssignedTo: fs@novell.com ReportedBy: arthursv@linux.vnet.ibm.com QAContact: adrian@novell.com Found By: Other On the YaST documentation (SLES 11.1 as reference, but all docs I saw were wrong),in the "The YaST Programming Language - YCP" section, on Chapter 6.7.2.3 (Mixed map/list access), says: list <map <integer, integer> > list_of_maps = [ $[1:2], $[3:4], $[5:6] ]; // returns true return (list_of_maps[1,0]:0 == three); The return line is wrong (it's copied from another section of the documentation where this return is right, probably some copy and paste issue. An example for the return line to be right would be: // returns true return (list_of_maps[1,3]:0 == 4); Or to be more concise with other examples: list <map <integer, integer> > list_of_maps = [ $[0:1], $[2:3], $[4:5] ]; // returns true return (list_of_maps[1,2]:0 == three); -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.