[dmd-internals] deprecated("message")

Sean Kelly sean at invisibleduck.org
Tue Jul 6 20:26:07 PDT 2010


Funny, I was thinking the exact same thing today. Vote++

Sent from my iPhone

On Jul 6, 2010, at 3:58 PM, Andrei Alexandrescu <andrei at erdani.com> wrote:

> 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 { ... }
> 
> 
> Andrei
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals


More information about the dmd-internals mailing list