Josef Urban wrote:
On Tue, 4 May 2004, Frank Heckenbach wrote:
Josef Urban wrote:
Maybe I will just copy the needed things to some 'gpcsystem.pas' and use it instead of system for gpc.
I don't suggest so. People often underestimate the troubles of code duplication. The initial copying is easy, of course, but keeping it up to date will cause unncessary effort in the long run.
Mostly yes, though sometimes you don't want to keep up with all the fancy stuff provided by others, and are happy with you own minimal implementation :-).
Unless/until it breaks sometime. Units shipped with GPC will always be adjusted to any necessary changes in the compiler or other units ...
As I said, I think we could add another conditional. Perhaps something like `__BP_NO_ALLOCMEM__' (any other suggestions)?
I would obviously welcome it.
Patch attached.
As for other suggestions, command line option also comes to mind ( --no-bp-alloc or similar), but at the first glance this seems a bit harder to do for System.pas ( I am no gpc expert).
Yes, and besides any conditional can be given as a command line option anyway (-D__BP_NO_ALLOCMEM__).
Frank