enum struct Rectangle { int x; int y; int width; int height; int Area() { return this.width * this.height; } }; void DoStuff(const Rectangle r) { PrintToServer("%d, %d, %d, %d", r.x, r.y, r.width, r.height); }