www.digitalmars.com         C & C++   DMDScript  

D - typedef'ed arrays ???

reply "chris" <news flak.clara.co.uk> writes:
In Delphi you can do

type TPalette = array[0..255] of TColor;

can this be done in D? I tried

typdef Palette uint[256]

but it doesnt work.

cheers,

chris
Apr 21 2004
parent reply "C. Sauls" <ibisbasenji yahoo.com> writes:
chris wrote:
 typdef Palette uint[256]
typedef uint[256] Palette; http://www.digitalmars.com/d/declaration.html#typedef -C. Sauls -Invironz
Apr 21 2004
parent "chris" <news flak.clara.co.uk> writes:
cheers again,

chris


"C. Sauls" <ibisbasenji yahoo.com> wrote in message
news:c66qur$2fe4$1 digitaldaemon.com...
 chris wrote:
 typdef Palette uint[256]
typedef uint[256] Palette; http://www.digitalmars.com/d/declaration.html#typedef -C. Sauls -Invironz
Apr 21 2004