Generality creep
Olivier FAURE
couteaubleu at gmail.com
Fri Mar 29 21:40:10 UTC 2019
On Friday, 29 March 2019 at 13:05:31 UTC, Andrei Alexandrescu
wrote:
> This allows user code to add things like serialization,
> factories and other introspection-based utilities automatically
> upon import.
You mean something like this?
// someFile.proto
syntax = "proto2";
message SomeType {
required int32 x = 1;
required int32 y = 2;
optional string label = 3;
}
message AnotherType {
required SomeType xy = 1;
required int32 z = 2;
}
// foobar.d
import "someFile.proto" : SomeType, AnotherType;
Because that would be seriously awesome.
More information about the Digitalmars-d
mailing list