Thread overview
typedef'ed arrays ???
Apr 21, 2004
chris
Apr 21, 2004
C. Sauls
Apr 21, 2004
chris
April 21, 2004
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


April 21, 2004
chris wrote:
> typdef Palette uint[256]

typedef uint[256] Palette;

http://www.digitalmars.com/d/declaration.html#typedef

-C. Sauls
-Invironz
April 21, 2004
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