On 19 Apr 2002 at 12:44, Adam Naumowicz wrote:
[..]
It still works with GPC. The problem here is using "Getmem" instead of "New". This might be an unnecessary restriction in GPC (i.e., having to use "New") - but it may well be documented (I don't remember - but I know that I don't use "Getmem" for object pointers, and perhaps there was a reason).
That is obviuos, but my question was related to a change of the GPC behaviour (some previous versions I have at hand i.e. 20010121 were able to compile it properly). I actually asked this question some time ago, but then it was about string schemata. Now, I noticed the same with objects and that caused my question. Therefore, I suppose that now, a constructor called as a static method (without new) doesn't (re)create VMTP at all ?
Dunno. Only Peter and Frank can perhaps answer that question.
type pt = ^t; t=object .... ... type ar=array[0..10000] of pt; var p : ar;
That's not actually the same - the point was to allocate only the needed space with GetMem - not even the array of pointers with maximal possible size...
Yes.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~African_Chief email: African_Chief@bigfoot.com