On Fri, 2005-01-28 at 13:37, Asger Ottar Alstrup wrote:
> Lars Gullik BjÃnnes wrote:
> > int a[4];
> > a+3 == a[3] == 3+a
> 
> And surprisingly "3[a]" works as well!
> 
> Regards,
> Asger

Yes, that *is* surprising.

In a previous life we had a Fortran IV compiler that (unintentionally)
allowed the assignment of a new value to a constant. E.g., you could add
one to the constant 5. Then if the program contained this constant a
number of times (which was stored only in one place, optimization!) you
got interesting results :-)

- Martin

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to