Hi, Kenton,

I am not familiar with protobuf compiler, so my comment may be off.

Since existing code does something like this.

static class Foo {
  Foo() { ... }
} foo;

What you can do it like this

static class Foo {
  Foo();
  ~Foo();
} foo;

Inside ~Foo(), you can do a check if (xxx), where xxx is a global
variable. I wonder if it will be easier to implement.

Hong

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to