Re: Stranger compiler error?
Stefan Ram wrote:
Patricia Shanahan <pats@acm.org> writes:
ASCII does not work well for some of this, because it lacks
distinct fonts.
I assume that your intention was not to refer to the encoding
of ASCII but to the format "plain text", which does not allow
markup.
ASCII is an encoding for the ASCII character set.
Your post was encoded in ISO-8859-1, but you are free to
choose UTF-8. Still, you would not have "distinct fonts",
because it still would be "plain text".
Correct.
Section 14.5 Statements lists all the productions for the
syntax element Statement. It does not include the syntax
element LocalVariableDeclarationStatement.
I like to have this semantic distinction:
A /declaration/ has its effect at compile time,
while a /statement/ has its effect at run time.
Naming a declaration a "statement" would blur this distinction.
The distinction is inherently blurred in Java because of initializers.
An initializer has many of the characteristics of an executable
statement. It has to be given a place in the execution sequence, to
define the values of variables it uses and which computations are
affected by its side effects.
Patricia