|
From: Henner H. <hen...@tu...> - 2011-02-01 16:01:53
|
There is no such value, though Java offers a "varargs" construct marked by "ParamType... ParamName" in the parameter list, which can represent any number of arguments of the given type. http://download.oracle.com/javase/tutorial/java/javaOO/arguments.html Maybe it can be used in combination with SWIG varargs? http://www.swig.org/Doc2.0/Varargs.html#Varargs_nn4 Best regards, Henner Heck Am 01.02.2011, 16:06 Uhr, schrieb Luigi Ballabio <lui...@gm...>: > On Tue, 2011-02-01 at 15:55 +0100, Henner Heck wrote: >> Yes, the boost::optional seems tricky. > > Also, it depends on the language. For Python, one can write a typemap > so that the wrapped function accepts either a value or None, and maps > the latter to boost::none. For Java, is there any such null value? > > Luigi > > -- Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/ |