News for hackers. Stuff that matters.
Re:22nd Century C by noobermin on Sunday September 11, 2016 @12:17AM (#12471984)

   int double_address foo; /* ? */
Or is it n steps away from ProducerObserverFactoryStragedy?
Re:22nd Century C by generic_user on Sunday September 11, 2016 @02:23AM (#12472243)
Actually, its not even an address its a pointer.

To get the address of an object you use the unary 'address of' operator '&'.

His macro was #define address *

The * is a pointer. You can declare a variable of type pointer to T with as many indirections as you want. int * * * * * * foo is fine. But you also use it to deference your object. bob = * foo;

You can't practically have a different name for each level of indirection to what ever the IS0 standard/Compiler limit is for * .

Also you end up with nasty indirections like this.

    **(*((struct foo*)(*bob.x))).y
Its nasty enough as it is without trying to name each pointer indirection.
Re:22nd Century C by mdadm on Sunday September 11, 2016 @01:07AM (#12472080)
You know there'll be that one person who complains about it not supporting something nested like 20 pointers deep...