-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
questions #5
Comments
Sorry about these issues - I'll be improving documentation on these shortly. The intended way to use it is: // From a string:
mixin ProtocolBuffer!s;
// From a file (does basic parsing)
mixin ProtocolBuffer!"somefile.proto"; The TODO is accurate - it does not properly handle ignoring unknown message parts I believe importing definitions works properly. |
ok thanks, maybe just a unittest would serve as doc for now. For importing definitions, could you add a search path (eg equivalent of -I flag) do you have a list not-yet-supported protocol buffer features? |
Search paths are added using -J because they're string imports I'd like the most common case to be the most straightforward - to me, this is parsing from a file instead of from a literal. So, how do the following sound: ProtocolBuffer!filename;
ProtocolBufferFromString!str;
// with "Raw" versions for generating strings only |
I'll try to create a list of unsupported features tonight, but for now I can say that it does not support the deprecated groups, nor will it. |
sounds good. Problems always arise with conflation (eg: if one wants to have a file with non-standard extension, that would fail with old scheme) |
if dproto is the user facing API, aren't ProtocolBuffer and ProtocolBufferString redundant? can ProtocolBufferString be hidden somewhere else so user would only call: |
After some recent changes (recent being a relative term), and separating out the .proto and string parsers, ProtocolBufferString is just the same thing as Also, made issues for the major things that I believe it's missing |
I have a few questions.
enum s=
message Foo {...}
;//how to use that?
ProtocolBuffer!s;
//for this:
mixin(ProtocolBufferString!s)
inspecting code produced with writeln shows stuff like: /// @todo: Figure out how to handle this stuff and other comments.
so my question is: how ready is it? what's done and left to be be done?
I couldn't see any test examples?
do you handle Importing Definitions? (cf https://developers.google.com/protocol-buffers/docs/proto: importing definitions)
The text was updated successfully, but these errors were encountered: