[protobuf] Re: Enum values are siblings of their type, not children of it.

2016-01-02 Thread GoldenBull Chen
https://github.com/google/protobuf/issues/1079 在 2010年8月21日星期六 UTC+8上午2:12:30,alopecoid写道: > > Hi, > > This post is about the fact that protobuf enum values use C++ scoping > rules, meaning that, unlike in Java, enum values are siblings of their > type, not children of it. > > Say I have the

[protobuf] Re: Enum values are siblings of their type, not children of it.

2015-12-28 Thread GoldenBull Chen
Agree. It's a bad design to use old C++ scoping rules for enum values. Even C++ itself has introduced enum class in C++11. 在 2015年11月10日星期二 UTC+8上午3:15:35,Teddy Zhang写道: > > Sorry to dig this old thread. > I now one of the solution right now is to put the enum to different proto > file and put

Re: [protobuf] Report a bug

2016-02-20 Thread GoldenBull Chen
Welcome to the new world of C# 6 and VS2015 :) These new syntax sugars will make your coding life easier. 2016-02-19 20:00 GMT+08:00 : > Hi, > > Protobuf is a nice work which saves me a lot of time. > > Through my using, I find a bug as the following : > > In some csharp

[protobuf] Is it possible to map an existing db table to an existing protobuf class in sqlalchemy?

2016-04-12 Thread GoldenBull Chen
I have an existing table in Oracle: CREATE TABLE test_tbl ( id NUMBER, name VARCHAR2 (100), valNUMBER, CONSTRAINT test_tbl_pk PRIMARY KEY (id) ); - In python, I

[protobuf] How can I use C++ Implementation on python3.5 / windows x64?

2016-03-01 Thread GoldenBull Chen
My envrionment: - windows 10 x64 - python 3.5 x64 - Visual Studio 2015 sp1 Is there any "click-next-next-finish" way to enable the C++ Implementation feature or should I build protobuf from source code? If latter, shall I build python from source code too? -- You received this

Re: [protobuf] Is it possible to map an existing db table to an existing protobuf class in sqlalchemy?

2016-04-16 Thread GoldenBull Chen
no, I didn't dive into sqlalchemy to read the source code 2016-04-16 6:41 GMT+08:00 Bo Yang <tebor...@google.com>: > Do you know what kind of interface the custom class needs to provide in > order to use sqlalchemy? > > On Tue, Apr 12, 2016 at 8:57 PM GoldenBull Chen <