I assume that user defined types - typedefs and record names - are not precluded from being variable or function names. By analogy with the built-in types, presumably they should be.
Ayup.That change broke way more scripts than I expected...
That change broke way more scripts than I expected...
Updated first post with a copy of the map-literals patch, in a perhaps futile attempt to re-rail this thread.
import <zlib.ash>
kmail("Zarqon", "Here is 10 meat and some bat crap!", 10, int[item] { $item[bat guano] : 3 } );
import <zlib.ash>
int[item] temporaryitemlist;
temporaryitemlist[$item[bat guano]] = 3;
kmail("Zarqon", "Here is 10 meat and some bat crap!", 10, temporaryitemlist);
int [int]
{
4 : 3,
5 : 6
};
(int [int]
{
4 : 3,
5 : 6
});
item [int,int] imap = item[int, int] {4: item[int] {4: $item[eyepatch]} };
record rec1 { int a; string b; };
rec1 [int,int] rmap = rec1[int, int] {4: rec1[int] {4: new rec1( 10, "abc" ) }, 10: rec1[int] {40: new rec1( 100, "xyz" ) } };
item [int,int] imap = {4: item[int] {4: $item[eyepatch]} };
record rec1 { int a; string b; };
rec1 [int,int] rmap = {4: rec1[int] {4: new rec1( 10, "abc" ) }, 10: rec1[int] {40: new rec1( 100, "xyz" ) } };
item [int,int] imap = item[int,int]{4: item[int] {4: $item[eyepatch]} };
record rec1 { int a; string b; };
rec1 [int,int] rmap = rec1[int,int]{4: rec1[int] {4: new rec1( 10, "abc" ) }, 10: rec1[int] {40: new rec1( 100, "xyz" ) } };