Hi all,
I read about pointers since few days and found that Delphi's objects (or class's instances) are already pointers.
Knowing that, I have simple question...
Do pointers are important when speaking objects or they are only when dealing with types or records definition)?
Is that class definition valid ?
or should be replaced with ?
In the second definition, is MyParent takes twice the memory or once with two pointers?
Thanks for help,
Rej Cloutier
I read about pointers since few days and found that Delphi's objects (or class's instances) are already pointers.
Knowing that, I have simple question...
Do pointers are important when speaking objects or they are only when dealing with types or records definition)?
Is that class definition valid ?
Code:
type MyClass: TMyClass
MyParent: ^TMyClass;
end;
or should be replaced with ?
Code:
type MyClass: TMyClass
MyParent: TMyClass;
end;
In the second definition, is MyParent takes twice the memory or once with two pointers?
Thanks for help,
Rej Cloutier