DIP 1003 Formal Review
Basile B. via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 14 07:25:06 PDT 2017
On Saturday, 13 May 2017 at 10:27:25 UTC, Timon Gehr wrote:
> [1] Also, here is a list of existing contextual keywords:
>
> exit
> success
> failure
> C
> C++
> D
> Windows
> Pascal
> System
> Objective-C
They are not used alone. They are used in a **statement** and
surrounded by parens.
It's important because statements start with keywords, which, in
a way, makes the contextual keyword less important.
"body" as contextual keyword would be only comparable if
1/ "in" and "out" would also be contextual keywords. For example
"exit", "success" and "failure" are **all** contextual keywords.
2/ used in a statement, for example "contract": void foo()
contract(in){}contract(out){} contract(body){} (i don't say that
this is the way to follow, it's more theoretical)
More information about the Digitalmars-d
mailing list