xxxxxxxxxx
/+dub.sdl:
+/
import std.string;
import std.algorithm.mutation;
struct Company
{
string name;
string location;
}
struct Racks
{
int number;
int location;
}
struct Metadata
{
string name;
Company[] companies;
Racks[] racks;
}
struct Item
{
Metadata[] met;
int count;
}
shared (Item) item;
void main()
{
updateMetadata();
}
void updateMetadata()
{
Company company;
company.name = "Hello";
company.location = "Bangalore";
Metadata m;
m.name = "m";
m.companies ~= company;
item.met ~= m;
import std.stdio: writeln;
writeln(item);
}