isphinx / protobuf-actionscript3

Automatically exported from code.google.com/p/protobuf-actionscript3
0 stars 0 forks source link

no way to determine if an optional field is actually set or unset. #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
as far as i can tell there is no way to determine whether a field marked 
"optional" has in fact been 
set or not. ie, i don't see a method corresponding to the 
message.has_my_field() functionality on 
the C++ side.

is this so ?
any thoughts on how to add such ?

Original issue reported on code.google.com by DocOce...@gmail.com on 5 Apr 2010 at 5:36

GoogleCodeExporter commented 8 years ago
true, but I believe that checking if the field has been set or not (if it's 
null/NaN
or not) can amount to the same.

Let me know if I missed something.

Original comment by sorrydevil@gmail.com on 30 Apr 2010 at 8:01