From 3dfb2298a8d44a3be0aea8e9614e7106a397c604 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 22 Dec 2016 08:40:00 +0000 Subject: [PATCH] Add further information into changes file about recent %rename template fix https://github.com/swig/swig/issues/856 [skip ci] --- CHANGES.current | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGES.current b/CHANGES.current index 9f0499579..eed9f5043 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -91,6 +91,26 @@ Version 3.0.11 (in progress) }; %template(Xint) X; + This also fixes %rename override of global %rename for templates. For example: + + // Global rename to make all functions start with a lower case letter + %rename("%(firstlowercase)s", %$isfunction ) ""; + %rename(woohoo) W::Woo; // fix now overrides above %rename + + template struct W { + W Woo(); + ... + }; + %template(Wint) W; + + The above also introduces a possibly unexpected change. Many of the STL containers + provided by SWIG use %rename to rename some methods, eg in std::vector, push_back + is renamed to add in Java. Previously this intended rename did not happen when using + using global %rename rules and the method would remain as push_back, but is now + renamed to add. Some more info in issue https://github.com/swig/swig/issues/856. + + *** POTENTIAL INCOMPATIBILITY *** + 2016-11-26: m7thon [Python] Issue #709 - improved wrapping of division operators 'from __future__ import division' now works in Python 2 whether or not the