<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY>
On Mon, 2007-05-14 at 19:34 +0300, Bogdan-Andrei Iancu wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi Jerome,</FONT>

<FONT COLOR="#000000">you can use strings also - no cast will be done. But the values must be </FONT>
<FONT COLOR="#000000">constants.</FONT>
</PRE>
</BLOCKQUOTE>
Yes, I knew that, this was just a teaser so you could state that unlike C++ Openser can handle non-int in switch statements <IMG SRC="cid:1179160742.24756.32.camel@anice.longphone.fr" ALIGN="middle" ALT=":-)" BORDER="0"> (Somehow mitigating the comparison with C for the const requirement ...)
<BLOCKQUOTE TYPE=CITE>
<PRE>

<FONT COLOR="#000000">regards,</FONT>
<FONT COLOR="#000000">bogdan</FONT>


<FONT COLOR="#000000">Jerome Martin wrote:</FONT>
<FONT COLOR="#000000">&gt; On Mon, 2007-05-14 at 12:12 +0300, Bogdan-Andrei Iancu wrote:</FONT>
<FONT COLOR="#000000">&gt;&gt; Hi Peter,</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; the &quot;case&quot; syntax does not accept any variables, but only constant </FONT>
<FONT COLOR="#000000">&gt;&gt; values (like in C also :) )</FONT>
<FONT COLOR="#000000">&gt;&gt;     </FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; But is it limited to int or implicitly-castable-to-int values, like in </FONT>
<FONT COLOR="#000000">&gt; C++ ?</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Cheers,</FONT>
<FONT COLOR="#000000">&gt; Jerome </FONT>

</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<B><FONT SIZE="2"><FONT COLOR="#808080">J&#233;r&#244;me Martin </FONT></FONT></B><B><FONT SIZE="2"><FONT COLOR="#bebebe">| </FONT></FONT></B><B><FONT SIZE="2"><FONT COLOR="#99cc00">LongPhone</FONT></FONT></B><BR>
<B><FONT SIZE="2"><FONT COLOR="#808080">Responsable Architecture R&#233;seau</FONT></FONT></B><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">122, rue la Boetie | 75008 Paris </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">Tel :&nbsp; +33 (0)1 56 26 28 44</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">Fax : +33 (0)1 56 26 28 45</FONT></FONT><BR>
<FONT COLOR="#c0c0c0">Mail :</FONT><FONT COLOR="#99cc00"> </FONT><FONT COLOR="#99cc00"><B><FONT SIZE="2">jmartin</FONT></B></FONT><FONT SIZE="2"><FONT COLOR="#bebebe">@longphone.fr</FONT></FONT><BR>
<FONT COLOR="#c0c0c0">Web :</FONT><FONT COLOR="#99cc00"> <A HREF="http://www.longphone.com">www.longphone.com</A></FONT><BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>