Search

September 07, 2007
General »
...volatile int count;


void fooFunc(void)
{
    ++ count;
};

typedef void (*foo_t)(void);


void test(int...
September 07, 2007
General »
...which, as a simple case, can replace the existing typedef notation

typedef oldname newname;

-- James
September 06, 2007
General »
...re preceded by the respective keyword - "alias"|"typedef" <type> <newname>.

-- 
Best regards,
  Vladimir                          mailto:thecybershadow...
September 06, 2007
General »
...clear that "typedef" is not a declaration. Come to think of it, "typedef" is short...
September 06, 2007
General »
...that way. ("typedef int x" parses like "const int x" - that is, "typedef" is officially...
September 05, 2007
General »
...the order of arguments to alias and typedef and sticking an '=' between them seems like...
September 05, 2007
General »
...the (reference to) the type, while a typedef is creating a new type with the...
September 05, 2007
General »
...is a typedef:
    typedef dst = src.dup;
while this is an alias:
    typedef dst = src;
September 05, 2007
General »
alias src [as] dst;
typedef src [as] dst;

Yay.
September 05, 2007
General »
...are now becoming more common, and frankly

typedef Tx = typeof(x);

is self-explanatory. In...
230 231 232 233 234 235 236 237 238 239 240
Next ›   Last »