POV-Ray : Newsgroups : povray.off-topic : Question about garbage collection (not a flame) : Re: Question about garbage collection (not a flame) Server Time
1 Oct 2024 09:26:43 EDT (-0400)
  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.