July 30, 2006 General » Re: To Walter, about char[] initialization by FF | |||
|---|---|---|---|
| |||
...humbly suggest: typedef ubyte latin1_t = 0; typedef ushort ucs2_t = 0; typedef ubyte koi8r... | |||
July 30, 2006 General » Re: To Walter, about char[] initialization by FF | |||
|---|---|---|---|
| |||
...a char. BTW, you can do this: typedef char mychar = 0; mychar[] a = new mychar... | |||
July 29, 2006 Issues » [Issue 270] New: Compiler allows and crashes on typedefs of "immediate"-function types | |||
|---|---|---|---|
| |||
...Code example: typedef int ft(int); //typedef typeof(test) fp; // This alternative typedef also crashes... | |||
July 22, 2006 Learn » Re: String Basics | |||
|---|---|---|---|
| |||
...in D? Now arguably developers could just typedef or alias char[] as string and be... | |||
July 20, 2006 Announce » Re: DMD 0.163 release | |||
|---|---|---|---|
| |||
...is confusing if one also has a typedef named 'as'. Having keywords be distinct, and... | |||
July 20, 2006 General » Re: constness for arrays | |||
|---|---|---|---|
| |||
...chance to legalize them.
Exactly!
Consider this
typedef uint color { ubyte red() {....} }
I want to... | |||
July 19, 2006 General » Re: constness for arrays | |||
|---|---|---|---|
| |||
...like length(uint newLength), opIndexAssign, etc. extended typedef allows you to define explicitly such const... | |||
July 19, 2006 General » Re: constness for arrays | |||
|---|---|---|---|
| |||
...allows for this on the other hand
typedef char[] string
{
disable opSliceAssign;
string toLower(){..}
}
If... | |||
July 19, 2006 General » Re: constness for arrays | |||
|---|---|---|---|
| |||
...you will define let's say following:
typedef string char[]
{
disable opSliceAssign;
....
char[] tolower() { ..... }
}
then... | |||
July 19, 2006 General » Re: constness for arrays | |||
|---|---|---|---|
| |||
...There are strong reasons for that. extended typedef and alias will allow D to have... | |||
Copyright © 1999-2021 by the D Language Foundation