[dmd-beta] dmd 1.069 and 2.054 beta

Jonathan M Davis jmdavisProg at gmx.com
Fri Jul 8 00:49:17 PDT 2011


On 2011-07-08 00:25, Stephan Dilly wrote:
> module main;
> 
> import std.ctype;
> 
> void main()
> {
> }
> 
> gives:
> "Warning: As of Phobos 2.054, std.ctype has been scheduled for
> deprecation in January 2012. Please use std.ascii instead."
> 
> 
> There is a file and line number missing.

It's a pragma, not a compiler warning. It doesn't give a file and line number. 
And if it did give one, all it would give would be the line number in 
std.ctype. It gets printed if you import std.ctype anywhere. Similar pragmas 
are used for pretty much every module which is currently either scheduled for 
deprecation or actually deprecated (and any which doen have such pragmas, 
should have them).

- Jonathan M Davis


More information about the dmd-beta mailing list