[pygccxml-development] How to do error checking?
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-09-12 10:13:48
|
Hi, I'm still at adding function transformer support to non-virtual functions. When transformers are applied to a set of methods, it can happen that several (overloaded) methods end up with an identical signature. Currently, this would result in an error during compilation because a function is redefined. So I'd like to check this and issue a warning in such cases. The check itself is no problem, but it requires sort of "global" data (namely a dictionary with the signatures that have been created so far) on a per-class basis. So there are two questions now: 1. Where should I store that data? (should I just add it to the class_t code creator instance?) 2. Does the Py++ design already specify where such a check should be done? (currently, I would probably do it in mem_fun_transformed_wrapper_t when the actual code gets generated) - Matthias - |