<!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/4.1.92">
</HEAD>
<BODY>
That's exactly what I was looking for. So it works as in most programming languages :P <BR>
Dmd has deceived me. It says:<BR>
<BR>
"Error: cannot implicitly convert expression (leaves.length) of type ulong to uint"<BR>
<BR>
It should say:<BR>
"Error: cannot implicitly convert expression (leaves.length) of type size_t to uint"<BR>
<BR>
Il giorno gio, 10/11/2011 alle 15.19 +0000, Dejan Lekic ha scritto:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Andrea Fontana wrote:

> Some functions (for example array length) return ulong on dmd64 e uint
> on dmd32
> I need to compile on both platform: which is the right/best/clean way?

Andrea, use the size_t type.
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>