(j3.2006) Did we intend to prevent this?

Malcolm Cohen malcolm
Wed Nov 9 20:20:56 EST 2011


>Why do we need to fix F08?
>
>I don't understand why

Yes, I know that, which I why I tried to explain it in my previous messages.

To recap:

- Link-time values are filled in by the linker.

- The linker cannot do arbitrary things to those values.

- The user is permitted to to arbitrary things to constants (like arithmetic as 
demonstrated).

- Therefore link-time values are fine for initialisation, but no good for 
constants.

This feature as apparently described in F2008 is fundamentally incompatible with 
separate compilation.  Some special cases can be handled, but not the general 
case.

As I said before, this feature is not really new, it has been around for decades 
in other languages.  Unfortunately we appear to have made rather a mess of 
copying it.

Cheers,
-- 
................................Malcolm Cohen, Nihon NAG, Tokyo. 




More information about the J3 mailing list