Deprecate C style declerations?

Chris Nicholson-Sauls ibisbasenji at gmail.com
Wed Dec 20 14:49:42 PST 2006


Should we do this?  As in cause:

# int foo[];
# int bar*;

And others to issue deprecation errors.  I think it would be a good idea, and shouldn't 
break extern(C) declarations, so long as one doesn't try to mix types.  (I don't think we 
can mix them in the C way at all, anyhow.  Haven't tried, though.)  Or else change the 
rules such that array/pointer decoration applies to the variable and not the type -- and 
correct me if I'm wrong about this not being the current behavior.

# int num   ,
#     arr[] ,
#     ptr*  ;

vs

# int   num ;
# int[] arr ;
# int*  ptr ;

-- Chris Nicholson-Sauls



More information about the Digitalmars-d mailing list