Assignment context defined ?
Dan Smith
daniel.smith at oracle.com
Fri Feb 22 10:25:47 PST 2013
It could be convenient to have a forward-reference to all the places assignment contexts are used. I'll keep that in mind...
For normative rules, where you should be looking is the specification for the corresponding construct -- i.e., 15.26, 14.17, 10.6, 8.3.2. Here, the text generally talks about being "assignable", where it should probably be more explicit about defining the context. I'll make a note to fix that.
—Dan
On Feb 22, 2013, at 3:18 AM, Srikanth S Adayapalam <srikanth_sankaran at in.ibm.com> wrote:
> It came up during local discussion that the term assignment context appears not
> be defined precisely: The introduction of section 5 has an informal discussion
> where item 2 bullet 1 starts:
>
> "Assignment contexts (including return statements, etc.) are supported"
>
> which implies that the term "assignment context" is used loosely, to include
> many more syntactic constructs.
>
> Shouldn't there be a clear enumeration ? (Assignment, return statements,
> local declarations with initialization, field declarations with initializations,
> array creation expressions with initializations ...)
>
> Thanks!
> Srikanth
>
>
More information about the lambda-spec-observers
mailing list