POV-Ray : Newsgroups : povray.off-topic : Question about garbage collection (not a flame) : Re: Question about garbage collection (not a flame) Server Time
4 Nov 2024 13:22:26 EST (-0500)
  Re: Question about garbage collection (not a flame)  
From: Nicolas Alvarez
Date: 31 Mar 2008 11:41:05
Message: <47f11421$1@news.povray.org>

> I'm not sure PHP lets you have a pointer to another object visible at 
> the user layer. If you do
>   $x['hello'] = $y
> as far as the user is concerned, $x['hello'] and $y are two different 
> values. So $y['hello'] = $y doesn't form a circular reference, as far as 
> I can remember.  I'll try it out as soon as I boot over to Linux.

PHP has "references":

$a =& $b;

This behaves like Unix hardlinks. "$a and $b are completely equal here, 
that's not $a pointing to $b or vice versa, that's $a and $b pointing to 
the same place"


Post a reply to this message

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