[fpc-devel] removed MaxAvail,MemAvail,HeapSize

Micha Nelissen micha at neli.hopto.org
Mon May 23 09:03:24 CEST 2005


On Mon, 23 May 2005 02:29:48 +0200
Konstantin Münning <konstantin at muenning.com> wrote:

> But when there is no memory left and you need
> some you can't behave perfect. Please let it be the programmers choice
> what to do and how to handle this. 

It is. Exceptions, ReturnNil, ...

> A compiler should be providing the
> means, not taking them away. 

Environment changes sometimes you know! Thus, so does the RTL. There are new means now.

> Anybody writing a program knows that there
> may be flaws. A warning (with an advice how to make it better) should
> still be the best for this.

Warning: compilation failure; make it better: here on mailing list.

> I would hapily contribute the code for a better MemAvail/MaxAvail
> function if that's the problem. I would like to be able to use the
> latest compiler which now I definitely can't as I must have the BP7
> compatibility which is very good in 1.0.10.

Well, define these functions in your own compatibility unit then ?

Micha




More information about the fpc-devel mailing list