Thread overview | |||||
---|---|---|---|---|---|
|
April 30, 2005 SDWest 2004 (maybe off-topic) | ||||
---|---|---|---|---|
| ||||
I'm surprised i found this in the presentation on D that's available on this site:
> Ever tried to declare in C
> a pointer to a pointer to an array of pointers to ints?
> int *(**p[]);
Shouldn't it be
int *(**p)[];
???
Whether this is known or not, i think an errata should be made available...
|
April 30, 2005 Re: SDWest 2004 (maybe off-topic) | ||||
---|---|---|---|---|
| ||||
Posted in reply to a lurker | "a lurker" <a_member@pathlink.com> wrote in message news:d4usfo$26jq$1@digitaldaemon.com... > I'm surprised i found this in the presentation on D that's available on this > site: > > > Ever tried to declare in C > > a pointer to a pointer to an array of pointers to ints? > > int *(**p[]); > > Shouldn't it be > int *(**p)[]; > ??? > > Whether this is known or not, i think an errata should be made available... It's known. It was pointed out while I gave the talk at SDWest, and was cause for much merriment. |
May 04, 2005 Re: SDWest 2004 (maybe off-topic) | ||||
---|---|---|---|---|
| ||||
Posted in reply to a lurker | a lurker wrote: > I'm surprised i found this in the presentation on D that's available on this > site: > >> Ever tried to declare in C >> a pointer to a pointer to an array of pointers to ints? >> int *(**p[]); > > Shouldn't it be > int *(**p)[]; > ??? > > Whether this is known or not, i think an errata should be made available... And even this looks wrong: int *(*fp)(); // C int* function()* fp; // D Should it be int* function() fp; // D ??? Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit. |
Copyright © 1999-2021 by the D Language Foundation