Liste des Groupes | Revenir à cl c |
Bart <bc@freeuk.com> writes:OK, so what are they?
In language like C, the LHS of an assignment is one of four categories:I can think of three others. There may be more.
>
A = Y; // name
*X = Y; // pointer
X[i] = Y; // index
X.m = Y; // member select
Example? (You seem to be turning into Tim here by hinting at things but withholding any further information.)A is a simple variable;C does not define the term "simple variable" so presumably you define it
to be any named object that /can/ appear on the LHS of a simple
assignment -- a sort of "no true Scots-variable".
X represents a term of any complexity, and Y is anyI can think of at least one expression form for X that contradicts this
expression.
claim.
It would be great if C had simple rules, but it doesn't. You could haveThis was a reply to someone who was questioning whether those examples of a complex LHS for Algol68 were valid.
started by saying something about the most comment forms of assignment
being those you list, and that X can be almost any term, but the risk of
making absolute claims is that people (like me) will look into them.
Les messages affichés proviennent d'usenet.