POV-Ray : Newsgroups : povray.off-topic : Programming design question, related to GC : Re: Programming design question, related to GC Server Time
1 Oct 2024 07:20:18 EDT (-0400)
  Re: Programming design question, related to GC  
From: Kevin Wampler
Date: 11 Apr 2008 14:40:00
Message: <47ffb080$1@news.povray.org>
It depends on the garbage collected language, but I think in Java this 
should do it:

http://java.sun.com/javase/6/docs/api/java/lang/ref/package-summary.html

in particular it looks like the WeakReference class would do what you want:

http://java.sun.com/javase/6/docs/api/java/lang/ref/package-summary.html

And also:

http://java.sun.com/javase/6/docs/api/java/util/WeakHashMap.html

I believe Python (and probably many other garbage collected languages as 
well) support similar functionality.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.