September 07, 2007 General » D's exception cost (happy path) is large than G++ | |||
|---|---|---|---|
| |||
...volatile int count;
void fooFunc(void)
{
++ count;
};
typedef void (*foo_t)(void);
void test(int... | |||
September 07, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
...which, as a simple case, can replace the existing typedef notation typedef oldname newname; -- James | |||
September 06, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
...re preceded by the respective keyword - "alias"|"typedef" <type> <newname>. -- Best regards, Vladimir mailto:thecybershadow... | |||
September 06, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
...clear that "typedef" is not a declaration. Come to think of it, "typedef" is short... | |||
September 06, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
...that way. ("typedef int x" parses like "const int x" - that is, "typedef" is officially... | |||
September 05, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
...the order of arguments to alias and typedef and sticking an '=' between them seems like... | |||
September 05, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
...the (reference to) the type, while a typedef is creating a new type with the... | |||
September 05, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
...is a typedef:
typedef dst = src.dup;
while this is an alias:
typedef dst = src; | |||
September 05, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
alias src [as] dst; typedef src [as] dst; Yay. | |||
September 05, 2007 General » Re: dst = src rather than src dst | |||
|---|---|---|---|
| |||
...are now becoming more common, and frankly typedef Tx = typeof(x); is self-explanatory. In... | |||
Copyright © 1999-2021 by the D Language Foundation