It gets a result... unfortunately it's wrong. But hey, that's progress :) Lots of debugging code left in to make up for a less than ideal debugger

This commit is contained in:
Jeff Moser
2010-10-02 21:15:47 -04:00
parent c22683ab33
commit fc6cd5c961
22 changed files with 145 additions and 70 deletions

View File

@ -17,12 +17,18 @@ class Variable
public function &getValue()
{
$value = &$this->_value;
// DEBUG
$selfHash = \spl_object_hash($this);
$selfName = (string)$this;
return $value;
}
public function setValue(&$value)
{
$this->_value = $value;
// DEBUG
$selfName = (string)$this;
$selfHash = \spl_object_hash($this);
$this->_value = &$value;
}
public function resetToPrior()
@ -57,15 +63,16 @@ class DefaultVariable extends Variable
class KeyedVariable extends Variable
{
private $_key;
public function __construct($key, $name, &$prior)
public function __construct(&$key, $name, &$prior)
{
parent::__construct($name, $prior);
$this->_key = $key;
$this->_key = &$key;
}
public function getKey()
public function &getKey()
{
return $this->_key;
$key = &$this->_key;
return $key;
}
}