On Tue, Nov 12, 2002 at 12:15:04PM +0100, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
Sorry, that syntax already has semantics:
which are?
int a; array(int) b; b=[a]=({3});
(1) Result: ({ /* 1 element */ 3 })
this example is not very conclusive,
b=[a]=({3});
seems to be of the type:
foo=bar=baz;
but [a] can't stand by itself yet, the fact that this assigns ({3}) to b seems to be unrelated to the [a] inbetween.
i would even argue that this is a bug, because a is not affected by nor has it any effect on the assignment.
so what is the semantics of allowing this statement?
greetings, martin.