dmd 1.069 and 2.054 release

Leandro Lucarella luca at llucax.com.ar
Tue Jul 12 10:07:15 PDT 2011


Jonathan M Davis, el 11 de julio a las 22:21 me escribiste:
> On Tuesday 12 July 2011 01:28:11 Leandro Lucarella wrote:
> > Jonathan M Davis, el 11 de julio a las 18:15 me escribiste:
> > > > Despite the confusing non-standard descriptions in --help, -w is the
> > > > "Treat warnings as errors" setting, so it *should* stop compilation
> > > > - that's the whole point of -w. The proper "Turn warnings on"
> > > > setting is -wi, not -w.
> > > 
> > > True. But when we're dealing with messages for something which is
> > > scheduled for deprecation
> > 
> > What's the point of "scheduled for deprecation" anyway? Things are
> > deprecated, or aren't, anything else should be in the documentation. You
> > can always use deprecated features using a compiler, so again... what's
> > the point of "scheduled for deprectation"? I can't really understand
> > that concept.
> 
> The idea is to have 3 stages while deprecating something.
> 
> 1. Scheduled for Deprecation.
> 2. Deprecated.
> 3. Removed.
> 
> When a symbol has been deprecated, -d is required to compile any code using 
> that symbol. So, deprecation breaks code. You either have to change your code 
> so that it doesn't use the deprecated symbol, or you have to change your build 
> scripts to use -d. In either case, deprecating a symbol without warning is 
> going to cause problems for anyone maintaining code which uses that symbol.

If you don't want your code to break when something is deprecated, you
should *always* compile with -d, so no, you don't have to change the
build system if you always have -d. Maybe all needed is just a -di (as
in -wi), where deprecation are informed but not treated as errors.

Scheduled for deprecation makes no sense, it's a user decision to use
deprecated code or not, and if should be a user decision if he/she wants
a warning about deprecated stuff or not.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
No tengo alas, como un planeador.
No tengo luces, como un plato volador.
Perdi mi rumbo soy un auto chocador.


More information about the Digitalmars-d-announce mailing list