[phobos] Why ConvError and not ConvException?
Lars Tandle Kyllingstad
lars at kyllingen.net
Wed Nov 17 03:34:10 PST 2010
You can use a pragma(msg) to mark a whole module, or a template. But
you need something like deprecated("...") to mark a non-templated
function or type.
-Lars
On Wed, 2010-11-17 at 12:25 +0100, Jacob Carlborg wrote:
> Can't you use a pragma(msg, ... ) for this ?
>
> On 17 nov 2010, at 02:08, Andrei Alexandrescu wrote:
>
> > On 11/16/10 4:29 PM, Jonathan M Davis wrote:
> >> On Tuesday, November 16, 2010 13:01:47 David Simcha wrote:
> >>> Once again, *please* put the aliases in for the old names for a few
> >>> releases. I'm getting really, really sick of having my code break every
> >>> release now that D2 is supposed to be "stable" and I think other D users
> >>> are starting to feel the same way.
> >>
> >> I think that it should be general policy to use deprecated aliases
> >
> > A related, very important topic, is that the deprecation message should be user-configurable. I'm thinking something like
> >
> > deprecated("You may want to use ConvException instead.")
> >
> > There is no way to achieve that with static if, version, etc. The deprecated warning would spring like now - only when the declaration is actually used.
> >
> >
> > Andrei
> > _______________________________________________
> > phobos mailing list
> > phobos at puremagic.com
> > http://lists.puremagic.com/mailman/listinfo/phobos
>
More information about the phobos
mailing list