[fpc-devel] CmdLine

Vinzent Hoefler JeLlyFish.software at gmx.net
Thu Oct 19 11:09:37 CEST 2006


On Thursday 19 October 2006 08:31, Marc Weustink wrote:

> The case shows that users can do this. There is no language construct
> that forbids it. So optimizing this with a smart linker may break
> such code.

Yes, it may. So what?

There's hell a lot of code that is generally possible within the 
language. Still it can be unportable, plain wrong, only work in certain 
situations etc. pp. Read: It still may break.

So "no language construct that forbids it" is no excuse, especially when 
you're digging around in internal compiler constructs.

Otherwise I'd expect some of my old code to work with FreePascal - where 
I outsmarted TPs heap manager to be able to free parts of dynamically 
allocated arrays.

>IMO, ppl will always be smarter and find a valid case where things get 
>broken.

This highly depends on your definition of "valid". My opinion: If it 
ain't guaranteed by the language, it ain't valid.


Vinzent.




More information about the fpc-devel mailing list