Thread overview | |||||
---|---|---|---|---|---|
|
October 01, 2010 [phobos] phobos commit, revision 2079 | ||||
---|---|---|---|---|
| ||||
phobos commit, revision 2079 user: Don Clugston msg: C function pointers -> D syntax http://www.dsource.org/projects/phobos/changeset/2079 |
October 01, 2010 [phobos] phobos commit, revision 2079 | ||||
---|---|---|---|---|
| ||||
Posted in reply to dsource.org | Why the heck does D even support the C style syntax here? IMHO it
should just be removed because it's completely unreadable and not that
important for porting C code.
On 10/1/2010 10:42 PM, dsource.org wrote:
> phobos commit, revision 2079
>
>
> user: Don Clugston
>
> msg:
> C function pointers -> D syntax
>
> http://www.dsource.org/projects/phobos/changeset/2079
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
>
|
October 02, 2010 [phobos] phobos commit, revision 2079 | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | On 2 October 2010 04:46, David Simcha <dsimcha at gmail.com> wrote:
> ?Why the heck does D even support the C style syntax here? ?IMHO it should just be removed because it's completely unreadable and not that important for porting C code.
I agree. Even worse is C function type syntax.
alias int(x)(int);
x * y;
actually compiles, and declares y as a function pointer. And x is a function type, the most bizarre beast in the C family.
int (z); actually parses as a declaration of a function type. Really
nasty for is() expressions.
|
Copyright © 1999-2021 by the D Language Foundation