diff --git a/TODO b/TODO index 1fcc992ac..2182ef86a 100644 --- a/TODO +++ b/TODO @@ -26,80 +26,6 @@ defer ready to go. The primary obstacle lies in the target language This is one of the last remaining "hard" problems in the SWIG core, but it is important that we solve it. -*** "Nested" typemaps. The basic idea is similar to allowing one to - use $descriptor(T) for any T, rather than just $descriptor - for the type currently being typemapped. - - In short (ha!), given a previously defined typemap: - - %typemap(in) Foo { - // whatever it takes to initialize $1 from $input - } - - it would be possible to inline its code inside another typemap. - While the syntax is still to be defined, the use would be - along the lines of: - - template class vector { - %typemap(in) vector { - ... - for (int i=0; i $typemap(in, input=x) - ( int FIRST = foo, double SECOND = bar ); - - The advantage of this syntax would be that the formal - arguments (int FIRST, double SECOND) are close to the - actual arguments (foo, bar). - - Comment by beazley - - $typemap(in, input=x) int = foo; - - is a little bit hard to parse in terms of variable substitution. - I'm considering something like this: - - $typemap(in,1=int foo, input=x) - - Note: This is partially implemented in the new Unified Typemap - Library(python,tcl,ruby and perl) via %fragments and the - SWIG_From/SWIG_AsVal methdos. - *** Implement $fail special variable substitution in wrappers. Used to properly transfer control out of a wrapper function while reclaiming resources.