satyenr / protobuf-perlxs

Automatically exported from code.google.com/p/protobuf-perlxs
Apache License 2.0
0 stars 0 forks source link

messages can't have fields with some reserved words that the perl object needs #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I found this out when my message had a 'length' field, and it took me a little 
while to see what was going on. 

Not sure of the best way to handle this:

1) print a warning from protoxs when a message field matches a reserved method 
name.
2) along with the above, create the method with a trailing undescrore (protobuf 
will do this with some already, i.e. namespace_)
3) do nothing, thats just how it goes.

Original issue reported on code.google.com by joshrote...@gmail.com on 17 Jan 2011 at 2:35