DMD32 vs DMD64 array.length

Andrea Fontana advmail at katamail.com
Fri Nov 11 00:30:53 PST 2011


That's exactly what I was looking for. So it works as in most
programming languages :P 
Dmd has deceived me. It says:

"Error: cannot implicitly convert expression (leaves.length) of type
ulong to uint"

It should say:
"Error: cannot implicitly convert expression (leaves.length) of type
size_t to uint"

Il giorno gio, 10/11/2011 alle 15.19 +0000, Dejan Lekic ha scritto:

> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111111/e98d5feb/attachment.html>


More information about the Digitalmars-d mailing list