Search

July 30, 2006
General »
...humbly suggest:

typedef ubyte latin1_t = 0;
typedef ushort ucs2_t = 0;
typedef ubyte koi8r...
July 30, 2006
General »
...a char.

BTW, you can do this:

typedef char mychar = 0;

mychar[] a = new mychar...
July 29, 2006
Issues »
...Code example:

  typedef int ft(int);
  //typedef typeof(test) fp; // This alternative typedef also crashes...
July 22, 2006
Learn »
...in D?

Now arguably developers could just typedef or alias char[] as string and be...
July 20, 2006
Announce »
...is confusing if one also has a typedef named 'as'. Having keywords be distinct, and...
July 20, 2006
General »
...chance to legalize them.

Exactly!

Consider this
typedef uint color { ubyte red() {....} }
I want to...
July 19, 2006
General »
...like length(uint newLength),
opIndexAssign, etc.

extended typedef allows you to define
explicitly such const...
July 19, 2006
General »
...allows for this on the other hand

typedef char[] string
{
	disable opSliceAssign;
	string toLower(){..}
}

If...
July 19, 2006
General »
...you will define let's say following:

typedef  string char[]
{
    disable opSliceAssign;
    ....
    char[] tolower() { ..... }
}

then...
July 19, 2006
General »
...There are strong reasons for that.

extended typedef and alias will allow D to have...
261 262 263 264 265 266 267 268 269 270 271
Next ›   Last »