diff --git a/TODO b/TODO index 6f19889be..42fa74c8a 100644 --- a/TODO +++ b/TODO @@ -62,6 +62,41 @@ defer ready to go. The primary obstacle lies in the target language **** Implement "throws" typemaps for all of the target languages. Partly implemented for Tcl, Perl, Python, Ruby, Java. +*** "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