13 Jun
2004
13 Jun
'04
9:42 p.m.
On 15:35 13/06/04, Peter N Lewis wrote:
constructor TBank.Create(amount : PCredit); begin New(Self.AccountBalance); Self.AccountBalance := amount; end;
This pair of lines shows a deep lack of understanding of what a pointer is and how pointers work.
The first line allocates some memory for you and puts the address of the memory into the pointer variable Self.AccountBalance.
Yes, of course. My sincerest apologies. -- Political Dissident Neil Santos Free Software Advocate Jabber: nsantos@jabber.org Please avoid sending me attachments encoded in secret formatting. See http://www.fsf.org/philosophy/no-word-attachments.html