[DUG] Dumb Friday Question
Neven MacEwan
neven at mwk.co.nz
Fri May 4 17:12:53 NZST 2007
Giovanni
If the sun is shining in palmy its probably 4 below 0
You should definatetly be using intefaces not pointer for this this way
you can do reference counting
Neven
> > Tim Jarvis [Tim.Jarvis at codegear.com] wrote:
>
> > Firstly I agree with the sentiment that you should try and avoid
> creating objects
>
> >> in one place and freeing in another ...
>
>
>
> This whole discussion is close to my heart. I've got a
> similar horrible situation where I've got a factory that produce
> objects that have 3D coordinates and these are passed around, may have
> their coordinates updated, and may end up get fed to a genetic
> optimiser, which may replicate the object (possibly many times) for
> the next generation. I've had to clone the objects which isn't
> pleasant. It's so easy with numbers/records and so messy with objects ...
>
> It's made me want to move to a language that has proper, transparent
> garbage collection. Anyone remember Lisp?
> **
> Time to go out into the sunshine and forget about memory management
> :-) It's a glorious afternoon in Palmerston North - contrary to
> popular belief, we do have them ...
> **
> Cheers
> Giovanni
> **=====================================================================
>
> Giovanni Moretti | Institute of Information Sciences and Technology
>
> Senior Lecturer | Massey University, Palmerston North, New Zealand
>
> Computer Science | Ph 64-6-3505799x2474 =Fax 64-6-3502259 == ZL2BOI
>
> =====================================================================
>
> http://www-ist.massey.ac.nz/moretti mailto:G.Moretti at massey.ac.nz
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
More information about the Delphi
mailing list