Hi,<br>I`m experimenting with defcstruct. <br>I tried the following:<br><pre class="lisp"><span class="paren1">(<span class="lisp-bg"><i><span class="symbol">defcstruct</span></i> point<span class="string"></span><br></span></span><span class="paren1"><span class="lisp-bg">    <span class="paren2">(<span class="lisp-bg">nr <span class="keyword">:int</span></span>)</span></span></span><br>
<span class="paren1"><span class="lisp-bg">    <span class="paren2">(<span class="lisp-bg">name <span class="keyword">:char :count 32</span></span>)</span></span></span><br><span class="paren1"><span class="lisp-bg"></span></span><span class="paren1"><span class="lisp-bg">    <span class="paren2">(<span class="lisp-bg">coordinates <span class="keyword">:float :count 3</span></span>)</span></span></span><span class="paren1">)<br>
<br>which also works like:<br>...<br></span><span class="paren1"><span class="lisp-bg"> <span class="paren2">(<span class="lisp-bg">coordinate1 <span class="keyword">:float</span></span>)</span></span></span><span class="paren1"></span><br>
<span class="paren1"><span class="lisp-bg"> <span class="paren2">(<span class="lisp-bg">coordinate2 <span class="keyword">:float</span></span>)</span></span></span><span class="paren1"><br></span><span class="paren1"><span class="lisp-bg"> <span class="paren2">(<span class="lisp-bg">coordinate3 <span class="keyword">:float</span></span>)</span></span></span><span class="paren1"></span><br>
</pre>
<pre class="lisp">I`m getting the values <span class="paren1"><span class="lisp-bg"><span class="paren2"></span></span></span>like this:<br><span class="paren1">(<span class="lisp-bg"><i><span class="symbol">with-foreign-object</span></i> ....<br>
<span class="paren2"><span class="lisp-bg"></span></span></span></span><span class="paren1"><span class="lisp-bg"><span class="comment"></span><span class="paren2">(<span class="lisp-bg"><i><span class="symbol">with-foreign-slots</span></i> <span class="paren3">...</span></span></span></span></span><br>
<br>nr by foreign-slot-value<br>name by foreign-string-to-lisp<br>but how do I read the array of floats with N dimensions into lisp?<br><br>Maybe I am missing something obvious here. Thanks a lot.<span class="paren1"></span><br>
</pre>