Fredrik Hedberg writes: > [ code injection for Java, not other languages ]
We have added this for c++, we extended the idl to allow us to say
struct NodeID {
1: i32 id;
cpp_verbatim
uint32_t hash() const {
return static_cast<uint32_t>(id);
}
std::string toStr() const;
end_verbatim
}
I can send in a patch that does this, but it seems like a decision
would have to be made on which way to do this (in the idl explicitly
vs in extra files)
-Eric
