[dmd-internals] deprecated("message")

Leandro Lucarella luca at llucax.com.ar
Tue Jul 6 17:59:28 PDT 2010



Andrei Alexandrescu, el  6 de julio a las 17:58 me escribiste:
> I think we need an optional message with deprecated. Most of the
> time something is deprecated in favor of an alternative artifact,
> and deprecated makes it impossible to point to that.
> 
> Because of that, I've been resorting to pragma(msg, "xxx") and
> static assert(false, "xxx") to provide guidance. Both leave a lot to
> be desired and have no integration with deprecated.
> 
> So I'm proposing this:
> 
> deprecated("You may want to use StaticMap")
> template staticMap { ... }

This is not DMD-specific (or are you really proposing it as a DMD-only
extension?), so I guess it should be in the general group.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
I would love to fix this world but I'm so lazy...
so lazy...



More information about the dmd-internals mailing list