On 2012-11-08 02:48, Walter Bright wrote:

Consider that if we do that, then someone will need to disambiguate with:

    @object.safe

which is ambiguous:

    @a.b .c x = 3;

or is it:

    @a .b.c x = 3;

?

I would say:

@a.b .c x = 3;

I mean, we read left to right, at least with source code. But as Sönke said, that could require parentheses:

@(a.b) .c x = 3;

Another problem is it pushes off recognition of @safe from the parser to
the semantic analyzer. This has unknown forward reference complications.

Just make it a keyword? The current attributes are already keywords from a user/developer point of view.

--
/Jacob Carlborg

Reply via email to