|
From: Luigi B. <lui...@gm...> - 2010-01-20 11:16:30
|
On Mon, 2010-01-18 at 22:14 +0000, Andrea wrote: > On 17/01/10 21:31, Andrea wrote: > > I would like to post 2 patches (one for QuantLib, the other for > QuantLib-SWIG) to allow users to > > implement a payoff entirely in a foreign language (e.g. Java). > > These patches apply on top of the other patch I have just sent. > > I've actually found a better solution, but it requires a global change > in QuantLib-SWIG. > > In SWIG there is already support for boost::shared_ptr<> that removes > distinction between raw pointer, value, reference and smart pointer > making it all easier. > > Does anybody know why it is not used? SWIG didn't provide it when we first wrote the interfaces, and I'm afraid we haven't keep abreast of the latest developments. I'll have to check it out. Would it result in an interface change as seen from the host language? Later, Luigi -- The doctrine of human equality reposes on this: that there is no man really clever who has not found that he is stupid. -- Gilbert K. Chesterson |