<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi there, <br>
<br>
while contemplating the marshalling of multidimensional arrays I could
not find definitive answers, hence turning to this list, requesting
some answers (even as short as "yes" and "no"):<br>
<ul>
<li>given an array with two dimensions (signature: aas) and the
following set elements:<br>
<blockquote>
<pre>arr[0,0]="a"
arr[0,1]="b"
arr[0,2]="c"
arr[1,0]="A" /* no values for: arr[1,1], arr[1,2] */
arr[2,2]="3" /* no values for: arr[2,0], arr[2,1] */
</pre>
</blockquote>
</li>
<li>Questions:</li>
<ul>
<li>Unassigned elements (like arr[1,0], which in some languages
could be marked explicitly as NULL/.nil) cannot be dropped (left-out) ?</li>
<ul>
<li>If must be given, then short of an explicit NULL/.nil
sentinel value one needs to use <br>
</li>
<ul>
<li>An empty (0-length) string for string-like types (string,
object_path, signature) ?</li>
<li>The value 0 for all simple types?<br>
<br>
</li>
</ul>
</ul>
<li>Which would be the marshalling sequence in the above example,
assuming that unassigned elements are represented by empty strings in
this case?</li>
<ol>
<li>[0,0], [0,1], [0,2], [1,0], [1,1], [1,2], [2,0], [2,1],
[2,2], hence the element sequence: "a", "b", "c", "A", "", "", "",
"", "3" ?<br>
or:<br>
</li>
<li>[0,0], [1,0], [2,0], [1,1], [2,1], [3,1], [1,2], [2,2], [2,3]
hence the element sequence: "a", "A", "", "b", "", "", "c", "", "3" ?<br>
<br>
</li>
</ol>
<li>Given the above example, would it be o.k. to leave out "trailing
empty elements of the array"? <br>
E.g. in case 1. marshalling above, this would yield the sequence
(arr[1,1] and arr[1,2] are left out; the array's dimension can still be
defined by open_container/close_container):</li>
<ol>
<li>[0,0], [0,1], [0,2], [1,0], [1,1], [2,0], [2,1], [2,2], hence
the element sequence: "a", "b", "c", "A", "", "", "3"<br>
<br>
</li>
</ol>
<li>Is it possible to marshall an empty array by merely using a
sequence of open_container(DBUS_TYPE_ARRAY) - no-content -
close_container?<br>
(Thought that it was prohibited, but have not been able to find
references for this)?<br>
</li>
</ul>
</ul>
TIA,<br>
<br>
---rony<br>
<br>
P.S.: Are there perhaps any thoughts about defining an explicit
NULL/.nil value (maybe at least transportable in the context of
variants) ?<br>
<br>
</body>
</html>