I was hoping to figure out whether Walter or Don would be interested in implementing this prior to posting on the newsgroup.

Andrei

On 07/06/2010 07:59 PM, Leandro Lucarella wrote:


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.


_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to