The future of std.compiler

Jacob Carlborg doob at me.com
Tue Nov 29 23:28:42 PST 2011


On 2011-11-29 23:57, Stewart Gordon wrote:
> 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.

They're in the list above, in the list of keywords.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list