Hi<div><br></div><div>I continued practicing with the tutorial. I came to the dictionary example in 2.7 Abstract types.</div><div>Being proficient enough in Prolog, I understand the code in the tutorial.</div><div>But I found no example of actually using an abstract type, or other flavours of types.</div>
<div>To be concrete, I wrote this minimal piece of code, but how to create an empty dictionary , with the right type (string) of key and value in variable Dic ?</div><div><br></div><div><div>        Dic2 = set( Dic, "jmv", "JM Vanel" ),</div>
<div>        search( Dic2, "jmv", V), </div><div>        io.write_string( "search( dic, jmv, V) : V= ", !IO),</div><div>        io.write_string( V, !IO) .</div><div><br></div><div>Thanks in advance</div>
<div><br></div><div>-- </div>Jean-Marc Vanel<br>Consulting, services, training,<br>Rule-based programming, Semantic Web<br><a href="http://jmvanel.free.fr/">http://jmvanel.free.fr/</a><br>EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java bytecode<br>
+33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16<br>( we rarely listen to voice messages, please send a mail instead )<br>
</div>