The future of std.compiler
Stewart Gordon
smjg_1998 at yahoo.com
Tue Nov 29 14:57:04 PST 2011
On 29/11/2011 20:31, David Nadlinger wrote:
> On 11/29/11 9:17 PM, Stewart Gordon wrote:
>> Identifiers beginning with __ are implementation-specific. std.compiler,
>> OTOH, continues to exist in order to provide _standardised_ access to
>> information about the compiler.
>
> Not in this case – actually, all special tokens defined by the language are enclosed in
> double underscores: http://d-programming-language.org/lex.html#specialtokens.
__FILE__ and __LINE__ aren't in that list - what gives?
But it seems the relationship between __VERSION__ values and x.y version numbers isn't
defined - so std.compiler remains the only way of accessing the latter.
Stewart.
More information about the Digitalmars-d
mailing list