msoucy / dproto

D Protocol Buffer mixins to create structures at compile time
Boost Software License 1.0
37 stars 16 forks source link

fully qualified name from a proto? #110

Open timotheecour opened 7 years ago

timotheecour commented 7 years ago

@msoucy

mixin ProtocolBufferFromString!"
package foo.bar;
message Person {...}
";

void test(){
  static  assert(Person.fqname=="foo.bar.Person");
}

is there anything similar to fqname? (static method returning at compile time the fully qualified proto type)

msoucy commented 7 years ago

Not at the moment, no... That shouldn't be too bad though, I'll keep it in mind