We need to kill C syntax for declaring function types
Steven Schveighoffer
schveiguy at yahoo.com
Mon Oct 4 06:00:13 PDT 2010
On Mon, 04 Oct 2010 08:55:55 -0400, Don <nospam at nospam.com> wrote:
> Steven Schveighoffer wrote:
>> Yes, 100% agree, get rid of this. Does that mean we need to get rid
>> of C-style function pointer declarations? Because I recently saw a use
>> for them (deciphering C-style function pointer syntax).
>
> I agree, I use it for the same thing. In the patch, I made C-style
> function pointers deprecated (so you can still compile it with the -d
> switch) and C-style abominable x(y) types illegal.
>
> I would expect that it always remains a deprecated syntax, to aid
> conversion of C-style code. But in my experience, you always want to get
> rid of them eventually.
Perfect solution, thanks!
-Steve
More information about the Digitalmars-d
mailing list