summaryrefslogtreecommitdiff
path: root/pyuno/source
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel.mamane@gestman.lu>2011-08-17 18:04:32 +0200
committerLionel Elie Mamane <lionel.mamane@gestman.lu>2011-08-17 18:11:00 +0200
commit0c3409364bfa52fda57818c69a800189237c9537 (patch)
tree551bc52ad01575f70d545742231ec949bfa227d3 /pyuno/source
parentd6ed363c0bc98525c4f1fe8bd5e90d5af457d0fd (diff)
TMP_LIONEL_NOTES
Diffstat (limited to 'pyuno/source')
-rw-r--r--pyuno/source/module/pyuno_module.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 4788a2f1846b..1bada6d10f32 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -75,6 +75,14 @@ namespace {
/**
@ index of the next to be used member in the initializer list !
*/
+// LEM TODO: export member names as keyword arguments in initialiser?
+// Python supports very flexible variadic functions. By marking
+// variables with one asterisk (e.g. *var) the given variable is
+// defined to be a tuple of all the extra arguments. By marking
+// variables with two asterisks (e.g. **var) the given variable is a
+// dictionary of all extra keyword arguments; the keys are strings,
+// which are the names that were used to identify the arguments. If
+// they exist, these arguments must be the last one in the list.
sal_Int32 fillStructWithInitializer(
const Reference< XInvocation2 > &inv,
typelib_CompoundTypeDescription *pCompType,
@@ -90,6 +98,7 @@ sal_Int32 fillStructWithInitializer(
int i;
for( i = 0 ; i < pCompType->nMembers ; i ++ )
{
+ // LEM TODO: and if too many? Silently ignored?
if( i + nIndex >= nTupleSize )
{
OUStringBuffer buf;