[Library Release] dproto

Kagamin spam at here.lot
Tue Oct 8 01:11:28 PDT 2013


On Saturday, 5 October 2013 at 20:56:21 UTC, Matt Soucy wrote:
> message Point {
> 	optional int32 x = 1 [default=166];
> 	required int32 y = 2;
> 	optional string label = 3;
> 	message Coord {
> 		required int32 a = 1;
> 		required int32 b = 2;
> 	}
> }
>
> You can get a structure that behaves as:
>
> struct Point {
> 	int x=166;
> 	int y;
> 	string label;
> 	struct Coord {
> 		int a,b;
> 	}
> }

Should it be really like that? If you just declare Coord struct, 
it doesn't place a Coord instance in Point.


More information about the Digitalmars-d-announce mailing list