accept @pure @nothrow @return attributes
ZombineDev via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jan 26 14:06:56 PST 2015
Examples:
[1]:
https://github.com/D-Programming-Language/druntime/blob/2024ca6d3e29362a2fc84ef51c0f73316259d645/src/core/internal/traits.d#L57
[2]:
https://github.com/D-Programming-Language/phobos/blob/de5d3392782c85e79e71e257b3ba607ccff852a5/std/typecons.d#L3240
On Monday, 26 January 2015 at 22:02:44 UTC, ZombineDev wrote:
> That's what pragma(mangle, "...")[1] is for. It is used at
> least a couple of times in druntime (and probably elsewhere -
> e.g. in library bindings).
>
> [1]: http://dlang.org/pragma.html (at the bottom of the page)
>
>
> On Monday, 26 January 2015 at 21:56:20 UTC, Ola Fosheim Grøstad
> wrote:
>> On Monday, 26 January 2015 at 21:28:51 UTC, Zach the Mystic
>> wrote:
>>> I think the short answer is that it's WAY too complicated for
>>> the benefit. Also, why burden the syntax highlighter, let
>>> alone the human reader, with ambiguities like this?
>>
>> There is no ambiguity in "object.body" or even "object.if =
>> 42"... All you need is an escape mechanism in the definition.
>>
>> The reason for why you want this is that you interoperate with
>> external interfacing definitions and standards that you auto
>> generate D code from. It is not likely that the external world
>> (like governments who define record exchange standards) will
>> adapt their naming policies to D idiocracies.
>>
>> If you cannot use "body" as a field name then you cannot
>> implement the HTML5 DOM according to the standard.
More information about the Digitalmars-d
mailing list